20th Sep '24/0 commentsPosts older than today in BricksSridhar Katakam Looking to show posts that were published before today in a Bricks posts query loop? This Pro tutorial shows how this can be done using WordPress' date_query query parameter. Set up a query loop in your Bricks Page/template. Click the query icon and enable PHP query editor. Paste: This is a BricksLabs Pro tutorial. For full access login below or create your BricksLabs Pro account Username Password Remember Me Forgot Password Tagged: Bricksdate_queryProSridhar KatakamSridhar Katakam is a Bricks enthusiast. He likes helping others by researching and solving WordPress-related problems and building websites.Get access to all 633 Bricks code tutorials with BricksLabs Pro
Pro WooCommerce Product Reviews Bricks Query LoopCreating a custom query loop for WooCommerce product reviews for building custom review layouts.Read more →Categories: Bricks, Plugins, ProTags: Custom Query Type, WooCommerce
Pro 6 Random Posts from Tag A + 6 Random Posts from Tag B in a Single Bricks Query LoopDisplaying two set of random posts, inside one query loop.Read more →Categories: Bricks, ProTags: Query Loop
Pro Current Single Post Reference From Inside a Bricks Query LoopUse case: Get the single post’s custom field (like ACF Repeater or Meta Box Group) array row corresponding to the loop’s counter/indexRead more →Categories: Bricks, ProTags: Query Loop
Bricks Query Loop – Posts Authored by Logged in UserHow to display only the posts authored by the currently logged-in user in a query loop.Read more →Categories: Bricks, FreeTags: Query Loop
Pro CPT Posts Grouped by Custom Taxonomy Terms in BricksThe steps to set up a Service Category terms loop with an inner Service posts loop in Bricks without writing code.Read more →Categories: Bricks, ProTags: Nested Queries
Pro Posts Grouped by Authors in BricksThis Pro tutorial for Bricks users provides the steps to loop through users and inside that, through posts whilst setting the inner query's author parameter…Read more →Categories: Bricks, ProTags: bricks/posts/query_vars, Query Loop
Pro Query Loop Index in BricksThis Pro tutorial provides the code for getting the index of each post in Bricks' query loops. This can be used for either outputting the…Read more →Categories: Bricks, ProTags: Loop Index
Pro Alphabetical Glossary Query Loop in BricksHow to group posts (can be of any post type) by their starting letter in Bricks.Read more →Categories: Bricks, ProTags: Custom Query Type, Nested Queries, Query Loop, Tabs
Pro Non-empty events sorted by event date and other posts below in BricksUpdated on 15 Jan 2024 Consider a scenario where you are showing posts from multiple post types namely post, event and game in a single…Read more →Categories: Bricks, ProTags: meta_query