Create your own button via a shortcode

Here’s a quick little snippet for adding your own shortcode which generates a button in any post or page from a single shortcode. Within the shortcode, there are 2 options to add a url for the button and the text that appears on the button itself.   Then, to add the button anywhere in a … Continued

Check if Gutenberg Blocks are being used in Post or Page

During development of a site for a client, they requested the site to be built using Gutenberg blocks. On import of other existing posts from a previous site (that wasn’t using blocks), we found that content was simply put into the page on import. This was fine, except the blocks we designed were fullwidth with … Continued

Output All Custom Field Data In A Loop – Including ACF Fields

During a recent build using Gutenberg editor, I needed to check the output of custom fields in a post as the fields weren’t displaying when getting called. To output all custom fields in a post loop, you can use this handy snippet to show all fields and it’s data. This also works for ACF (which … Continued

Redirect WordPress user if not logged in

Quite often I have requirements to redirect users if they are not currently logged in to a site. This could be for numerous reasons, but a popular one would be to redirect all visitors to a coming soon page while allowing admins to login in and view the site. This is accomplished by adding the … Continued

Disable Emoji Support in WordPress

Use the function below to strip out and disable the emoji support in WordPress.  Emoji’s are enabled by default and add unnecessary styles and scripts in the header of the site, regardless of theme.   Adding the below to your themes functions.php or in a standalone plugin (to override regardless of theme) will do the job: … Continued

I’m now a Certified WordPress Expert at Codeable

While I’ve been working as a web designer and developer for nearly 10 years now, 5 of those have been as a freelancer and consultant specialising in WordPress development and bespoke design. Honestly, I don’t think I could ever go back to employment. Recently, I applied to become a certified expert at Codeable, and today … Continued

Fix ‘Another Update in Process’ error in WordPress

I recently stumbled upon an issue with updating WordPress.  A brand new install without content, I couldn’t see why I was facing the issue of updating WordPress.  All plugins had updated just fine, but when I went to update WordPress, I saw an ‘Internal Server Error’ message.  Trying the core update again, I was then … Continued

Remove P tags from Contact Form 7 forms

I love Contact Form 7 and use it on 99% of my client and my own sites. It’s simple, lightweight and does a perfect job for mail. Depending on the form you use, you sometimes need to remove the <p> and <br> tags that appear in the form, which are auto-generated by the plugin. While … Continued

The easiest way to export WordPress comments into another site

Recently, during a website makeover, I began working on a new site and while developing it, new comments had been added to the live site.  As I had already made a copy of the site to work on at the start of the project, the latest comments wouldn’t have been included in my copy when … Continued

Show WordPress current version and latest version in admin footer

It can be a little annoying when there is a new version of WordPress available and you’re not sure what version your are currently running. Sometimes it’s worth waiting a while after a new major update to see if it brings bugs and it would be worth to know how far behind you are to … Continued