(30 tutorials)
Pro
Display External WordPress Posts using WP REST API

Display External WordPress Posts using WP REST API

This Pro tutorial provides the steps for showing posts from any WordPress site using the WordPress REST API. For this to work, the external (or…
Categories:
How to add “/post” to blog posts permalinks in WordPress

How to add “/post” to blog posts permalinks in WordPress

How to add /post (or any other like /blog) after the domain name in the permalink URLs of your WordPress site’s single blog posts.
Categories:
Pro
Making a Nav Menu Item Active for Custom Post Type Single Views in WordPress

Making a Nav Menu Item Active for Custom Post Type Single Views in WordPress

Consider this scenario: CPT: project Page titled "Project" is being used to show a list/grid of all the projects rather than the CPT archive. When…
Categories:
My Notes on “WordPress Tutorial: Build your first block”

My Notes on “WordPress Tutorial: Build your first block”

As someone that has recently learned some JavaScript (from here) and React (from here), here are my thoughts and notes as I follow the official…
Categories:
How to fix fatal error after creating a new block with WordPress’ create-block

How to fix fatal error after creating a new block with WordPress’ create-block

If you are using a Mac or Linux, chances are that after running the latest create-block npm command and activating the newly created plugin, the…
Categories:
Pro
Host Post’s Term in Bricks Query Loop

Host Post’s Term in Bricks Query Loop

Updated on 4 Mar 2025 In the BricksLabs Facebook group a user asked: Hi everyone, I’m facing a tricky situation that might have a simple…
Categories:
Pro
Dynamic Posts Side Menu with Expandable and Collapsible Accordion Submenus in WordPress

Dynamic Posts Side Menu with Expandable and Collapsible Accordion Submenus in WordPress

This Pro tutorial provides the steps to show all the posts of a specified post type as menu items with accordion functionality for submenus. This…
Categories:
Checking if the current post has been published within the last x days

Checking if the current post has been published within the last x days

Conditionally output an element if the current post has been published in the last x number of days.
Categories:
Redirecting Paginated Pages in WordPress

Redirecting Paginated Pages in WordPress

It is typical to have one or more custom query loops on a static Page like the site's homepage. Let's say in one of these…
Categories:
Pro
How to Update Custom Fields with Default Values For Existing Posts when using ACF

How to Update Custom Fields with Default Values For Existing Posts when using ACF

Let's take a scenario where there are 10 Pages in a WordPress site. You proceed to create a Text-type of custom field called, say, "Custom…
Categories:
Tags:
Pro
Adding CSS based on a PHP boolean value in WordPress

Adding CSS based on a PHP boolean value in WordPress

In the Bricks Facebook group a user asked: How do I display a pseudo element depending on the presence of data in an ACF field…