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 626 Bricks code tutorials with BricksLabs Pro
Pro Post Titles and Post Content Tabs in BricksHow to set up Nestable tabs with post titles as the tab menu, and post content and/or any other post-specific data as the tab content.Read more →Categories: Bricks, ProTags: Query Loop, Tabs
Pro Querying Posts by ACF Date Sub Field in BricksUpdated on 17 Nov 2023. This Pro tutorial shows how we can set post__in query parameter of a query loop in Bricks to an array…Read more →Categories: Bricks, Plugins, ProTags: ACF Pro
Pro Filtering posts by a group field’s subfield value with Meta Box when using a custom table in BricksFiltering a query loop to output only those posts with the value of a Select subfield of a Group field set to Yes when using…Read more →Categories: Bricks, Plugins, ProTags: Meta Box
Querying Posts by JetEngine Switcher Field in BricksWe look at how to display only posts with switcher value of ‘1’ in a specific query loop.Read more →Categories: Bricks, Free, PluginsTags: JetEngine, Query Loop
Pro Upcoming Events Grouped by ‘Month Year’ in BricksA custom query loop type for showing future events based on a date custom field using three nested query loops.Read more →Categories: Bricks, ProTags: ACF, Custom Query Type, Query Loop
Pro 6 Random Featured Posts in Alphabetical Order in BricksHow to output x number of random posts with a specific meta value set, in Alphabetical order.Read more →Categories: Bricks, ProTags: Query Loop
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 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 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