WordPress Blocks

Web Design Overview

Mr JoshersApr 25, 2024
Creating a website design from scratch is both an art and a science, involving a blend of aesthetics, usability, and technical considerations.
Adding JS to your ACF Block with block.json

Adding JS to your ACF Block with block.json

Mr JoshersApr 24, 2024
Adding JavaScript to your Advanced Custom Fields (ACF) block in WordPress can really enhance the functionality and interactivity of your custom blocks.
Simple Plugin for a Shortcode

Simple Plugin for a Shortcode

Mr JoshersApr 19, 2024
Creating a plugin in WordPress to handle your custom shortcode is a great way to keep your functionality separate from your theme.
WSL and WPCS in PHPStorm

WSL and WPCS in PHPStorm

Mr JoshersApr 14, 2024
To install the WordPress Coding Standards (WPCS) for PHP_CodeSniffer in PhpStorm when using Windows Subsystem for Linux (WSL), you’ll essentially be working through WSL for most of the setup.
ACF Repeater Fields

ACF Repeater Fields

Mr JoshersMar 25, 2024
Getting values from a repeater field in Advanced Custom Fields (ACF) is pretty straightforward. ACF repeater fields are super handy for creating sets of repeatable data, like a list of team members, event schedules, or image galleries.
// emoji

// emoji

Mr JoshersMar 13, 2024
// Go ahead, sprinkle some emoji magic in your comments. Because why not?
Mastering the Art of Centering 🎯

Mastering the Art of Centering 🎯

Mr JoshersMar 1, 2024
Whether you’re crafting your next masterpiece or tweaking an existing layout, centering a div is one of those fundamental skills that never seems to lose its relevance.
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.
Load More