Upload to AWS s3 Bucket

Upload to AWS s3 Bucket

Mr JoshersFeb 20, 2024
Ah, connecting to an S3 bucket using the AWS CLI is a pretty straightforward process, and it’s great for managing your files without needing to go through the AWS Management Console.
I just can’t quit you VIM

I just can’t quit you VIM

Mr JoshersFeb 18, 2024
Editing a file in vim is a process that involves several steps, from opening the file to making changes and saving those changes. Here’s a casual walkthrough to get you started.
wp_kses_post

wp_kses_post

Mr JoshersJan 25, 2024
The wp_kses_post() function in WordPress allows through the HTML elements that are specified in the $allowedposttags global variable.
LoVe HAte 👊

LoVe HAte 👊

Mr JoshersJan 24, 2024
So, you’ve got these four CSS selectors, right? “LVHA” – sounds a bit like a secret code, doesn’t it?
The :has Pseudo-Attribute in CSS: A Fairy Tale with a Twist 🦄

The :has Pseudo-Attribute in CSS: A Fairy Tale with a Twist 🦄

Mr JoshersJan 7, 2024
Once upon a time in the mystical realm of web development, CSS wizards and sorcerers embarked on a quest to discover the mythical :has pseudo-attribute.
error_log(): Available Error Levels and Their Meanings 🪵

error_log(): Available Error Levels and Their Meanings 🪵

Mr JoshersJan 7, 2024
The error_log() function in PHP allows you to specify the error level using an optional parameter. You can choose from a range of predefined error levels to categorize your log message appropriately.
ACF Color Picker Custom Pallets 🎨

ACF Color Picker Custom Pallets 🎨

Mr JoshersDec 22, 2023
So you need to add a custom pallet to the ACF color picker to match the branding of the site. Use an ACF hook in functions to put JS into the footer of the edit page, use a ACF JS filter to add the arguments.
Normal, Wide, and Full Margins Strategy

Normal, Wide, and Full Margins Strategy

Mr JoshersDec 19, 2023
Developing a CSS strategy to accommodate different block types in WordPress, especially for normal, wide, and full-width blocks, requires a combination of responsive design principles and a clear understanding of your theme’s layout constraints.
Take from the parent.

Take from the parent.

Mr JoshersDec 7, 2023
You can retrieve a field value from a parent post in WordPress. This is a common task in WordPress development, especially when working with hierarchical post types like pages.
How do you use a class in PHP?

How do you use a class in PHP?

Mr JoshersNov 8, 2023
Using a class in PHP involves a few steps: Here’s a full example putting all these steps together: In a modern PHP project, you would typically skip the manual require step and rely on an autoloader, but the rest of the steps remain the same.
Add a class to the post_class()

Add a class to the post_class()

Mr JoshersNov 6, 2023
In WordPress, you can definitely tack on extra classes to the post_class() function right in your template files. It’s super handy for styling your posts differently or adding some JavaScript functionality later on.
Add ACF Value to Custom Post Type WP Admin List

Add ACF Value to Custom Post Type WP Admin List

Mr JoshersNov 1, 2023
Displaying the value of an Advanced Custom Fields (ACF) field in the WordPress admin post list can be really handy for quick overviews. You can do this by using the manage_posts_columns and manage_posts_custom_column hooks for posts or custom post types.
gitignore

gitignore

Mr JoshersOct 29, 2023
How do I ignore a full directory in .gitignore? Ah, ignoring a directory in .gitignore is a piece of cake! All you have to do is add the directory’s name followed by a forward slash (/) in your .gitignore file.
querySelector

querySelector

Mr JoshersOct 19, 2023
querySelector is pretty versatile! It can select elements by classes, IDs, attributes, and even more complex CSS selectors.
Trigger Click after Scroll

Trigger Click after Scroll

Mr JoshersOct 19, 2023
Ah, triggering an event after scrolling a certain distance down the page is a pretty common task. You can use the window.scrollY and document.documentElement.scrollHeight properties along with the scroll event to achieve this in JavaScript.
Extend jQuery Example

Extend jQuery Example

Mr JoshersOct 13, 2023
The $.extend() method is used to add a new property to the $.expr[“:”] object, which contains all of the custom selectors that jQuery supports.
Trigger JS After An Element Has Changed. MutationObserver

Trigger JS After An Element Has Changed. MutationObserver

Mr JoshersOct 12, 2023
You can use the MutationObserver API to observe changes to the DOM and trigger a function when a specific element is added to the DOM.
meta_query

meta_query

Mr JoshersOct 3, 2023
The meta_query is a parameter in WordPress that is used to filter posts or custom post types based on the values of their custom fields. It is a sub-parameter of the WP_Query class and…
Vue Directives

Vue Directives

Mr JoshersOct 1, 2023
Vue provides a number of built-in directives. The exact number might depend on the version you’re using, but here’s a general list of some commonly used directives in Vue 2.x and Vue 3.x
Vue Life Cycle Hooks

Vue Life Cycle Hooks

Mr JoshersOct 1, 2023
Vue’s lifecycle hooks give you a way to run custom logic at different stages of a component’s life. It’s a lot like those milestones in life—being born, going to school, getting a job, etc. Each stage presents a unique opportunity to do something meaningful.
Load More