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 632 Bricks code tutorials with BricksLabs Pro
Pro Posts Grouped by Years and Months in BricksHow display posts organized by months & within years based on the published date.Read more →Categories: Bricks, ProTags: Nested Queries
Dynamic Post ID in Query LoopHow to add unique IDs for each post in Bricks’ Query Loop.Read more →Categories: Bricks, FreeTags: Dynamic Data
Pro Upcoming Events Accordion in Bricks Grouped by ‘Month Year’Showing the upcoming ‘month year’s in BricksExtras Pro Accordion with the events corresponding to that month and year with the dates based on event_date post…Read more →Categories: Bricks, Plugins, ProTags: BricksExtras, Custom Query Type, Nested Queries, Pro Accordion, Query Loop
Pro Search Results Grouped by Post Types in BricksUpdated on 08 Oct 2024 This Pro tutorial provides the steps to arrange the search results by specified post types in a Bricks site. We…Read more →Categories: Bricks, ProTags: Nested Queries, Search Results
How to List Your Posts Divided by Categories in BricksIn this tutorial, we'll learn how to display a list of posts divided by each category. The DOM tree Here is how I structured my…Read more →Categories: Bricks, FreeTags: Dynamic Data, Query Loop
Pro Custom SQL Ordering for Sorting Events in BricksShowing events ordered by the event date with upcoming events in ascending order and past events in descending order.Read more →Categories: Bricks, ProTags: Ordering, Sorting, SQL
Pro Events grouped by Event Date custom field in BricksThis Pro tutorial for Bricks users provides the steps to output posts of an event custom post type dynamically grouped by the value of their…Read more →Categories: Bricks, Plugins, ProTags: ACF, Nested Queries
Pro ACF Select Field Query Types in BricksIn the BricksLabs Facebook group a user asks: Hi all, I am building a single post template for a CPT and want to know if…Read more →Categories: Bricks, Plugins, ProTags: ACF, Custom Query Type, Query Loop
Pro Category Posts Accordion in BricksThis Pro tutorial provides the steps to set up a dynamic accordion of posts grouped by their categories based on the previous Posts Grouped by…Read more →Categories: Bricks, ProTags: Accordion, bricks/posts/query_vars, Nested Queries