Search

Search

How To Get The Excerpt By Post ID

October 25, 2021

Cameron Jones

No Comments

WordPress

Most WordPress templating functions are available in two formats, one to echo and one to return. These are normally in the form of the_xxx() to display, and get_the_xxx() to return. Some examples of this are: Post title: the_title() and get_the_title() Post thumbnail: the_post_thumbnail() and get_the_post_thumbnail() Aside from differing in returning or displaying the response, the…

View Article

How To Remove The Uncategorised Category From WordPress And WooCommerce

September 28, 2020

Cameron Jones

No Comments

Developer Tutorials, WooCommerce, WordPress

Out of the box, WordPress includes a default category for posts called “Uncategorized”. It not only looks unprofessional, it’s largely unnecessary. While you can rename it to something more suitable, I tend to use “General”, you can’t delete it. At least, not without a bit of code. The first thing we’ll want to do is…

View Article

How To Set A Default Featured Image For Your Posts And Pages In WordPress Using Advanced Custom Fields

July 25, 2020

Cameron Jones

2 Comments

Advanced Custom Fields, Developer Tutorials, WordPress

They say pictures are worth a thousand words. That might be a slight exaggeration, but images can be vitally important for websites, particularly for layouts that use featured images. It’s common for themes to display grids or lists of posts, and if some of the posts don’t include a featured image the site can look…

View Article

How To Use The New acf/register_block_type_args Filter To Optimise ACF Block Registration

May 10, 2020

Cameron Jones

1 Comment

Advanced Custom Fields, WordPress

On March 26th, Advanced Custom Fields 5.8.9 was released. It was a relatively minor release, mainly including a couple of bug fixes, translation updates. But this would be the release that changed everything about block registration. Quietly, a new filter acf/register_block_type_args was introduced. This allows plugins or themes to modify the registration arguments of a…

View Article