Loading External Scripts in WordPress With Defer AttributeThe next major version of WordPress, 6.3 includes a loading strategy for scripts so we can easily specify that the scripts have defer or async…Read more →Categories: Bricks, Free, WordPressTags: defer, JavaScript, wp_enqueue_script
Pro Post Category Links Ordered by Parent and Child Categories in BricksA 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…Read more →Categories: Bricks, Pro, WordPressTags: get_the_category
Adding code before closing head tag in WordPressLooking 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>…Read more →Categories: WordPressTags: Action Hooks
Pro Custom Field Values Below Images in WordPress Block Editor OutputUpdated on 7 Feb 2024 A user in our Facebook group asks: How can I display Image custom fields? I have 2 ACF fields for…Read more →Categories: Pro, WordPressTags: render_block
Pro Events Grouped by Event YearIn this Pro tutorial, we share the PHP code for outputting past events grouped by the event year in descending order of the event year.…Read more →Categories: Pro, WordPressTags: PHP
Pro Fixed Publish Metabox on ACF Options Admin PageA 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…Read more →Categories: Plugins, Pro, WordPressTags: admin_head
Querying for Posts Starting with a Specific Letter in BricksLooking to show all posts that begin with a letter, like say A in Bricks? Set Posts per page to a number that is larger…Read more →Categories: Bricks, Free, WordPressTags: bricks/posts/query_vars, Filters
Is WooCommerce Cart Empty Condition in BricksUpdated 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…Read more →Categories: Bricks, Free, Plugins, WordPressTags: Conditions, WooCommerce
Pro Condition to Check if the Current Category Has At Least One ChildLooking to render an element in the category archive Bricks template only if the category of the current category archive page is a parent? This…Read more →Categories: Bricks, Pro, WordPressTags: Dynamic Data
Get User Meta for the Current Post Author in WordPressUpdated on 29 Jul 2024 Looking to get user meta for the current post author either on single posts or in the archive when in…Read more →Categories: Bricks, Free, WordPressTags: get_the_author_meta, get_user_meta
Pro Checking for Grandparent Ancestor in WordPressConsider 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…Read more →Categories: Bricks, Pro, WordPressTags: get_post_ancestors
Author Page Archive Link for the Current UserWordPress 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…Read more →Categories: Bricks, Free, WordPressTags: Author Posts URL