WordPress

(30 tutorials)
Pro
Post Category Links Ordered by Parent and Child Categories in Bricks

Post Category Links Ordered by Parent and Child Categories in Bricks

A user asks: As far as know, there is built-in setting or a filter in Bricks builder to output comma-separated post categories with parent categories…
Adding code before closing head tag  in WordPress

Adding code before closing head tag in WordPress

Looking to add code before the closing head tag in a WordPress site? Most well-coded themes will have a call to wp_head() function before </head>…
Categories:
Pro
Custom Field Values Below Images in WordPress Block Editor Output

Custom Field Values Below Images in WordPress Block Editor Output

Updated on 7 Feb 2024 A user in our Facebook group asks: How can I display Image custom fields? I have 2 ACF fields for…
Categories:
Pro
Events Grouped by Event Year

Events Grouped by Event Year

In this Pro tutorial, we share the PHP code for outputting past events grouped by the event year in descending order of the event year.…
Categories:
Tags:
Pro
Fixed Publish Metabox on ACF Options Admin Page

Fixed Publish Metabox on ACF Options Admin Page

A small quality of life improvement that is useful when there's a long ACF Options (needs ACF Pro) admin page in the WordPress dashboard: Make…
Categories:
Is WooCommerce Cart Empty Condition in Bricks

Is WooCommerce Cart Empty Condition in Bricks

Updated on 5 Nov 2024 Looking to conditionally render an element depending on whether the user's cart is empty or not when using WooCommerce? Add…
Pro
Condition to Check if the Current Category Has At Least One Child

Condition to Check if the Current Category Has At Least One Child

Looking to render an element in the category archive Bricks template only if the category of the current category archive page is a parent? This…
Categories:
Pro
Checking for Grandparent Ancestor in WordPress

Checking for Grandparent Ancestor in WordPress

Consider this Page structure: Page 1|_ Page 1.1|__ Page 1.1.1 View in question: A single Page The requirement is to conditionally output an element only…
Author Page Archive Link for the Current User

Author Page Archive Link for the Current User

WordPress has a handy function called get_author_posts_url() that returns the URL of the archive page for the author of the current post. If you are…