20th Sep '24/0 comments/FavoritePosts 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 558 Bricks code tutorials with BricksLabs Pro
Pro Nested Queries in Bricks – Posts Grouped by Published Years and CategoriesIn the past we showed how posts could be grouped by years in Bricks. This Pro tutorial takes it further by grouping posts by categories…Read more →Categories: Bricks, ProTags: Query Loop
Pro Excluding Duplicate Posts from Query Loops in BricksHow to ensure that posts are not duplicated when two query loops are used on the same page.Read more →Categories: Bricks, ProTags: Query Loop
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 Upcoming Events Accordion in Bricks Grouped by ‘Month Year’This Pro tutorial is a variation of the previous Upcoming Events Grouped by 'Month Year' in Bricks tutorial wherein the upcoming 'month year's are shown…Read more →Categories: Bricks, Plugins, ProTags: BricksExtras, Custom Query Type, Nested Queries, Pro Accordion, Query Loop
Pro Current Post’s Terms in BricksUpdated on 15 Jan 2024 This Pro tutorial provides the steps to set up a grid of terms (like categories) that the current post is…Read more →Categories: Bricks, ProTags: JSON Code, Query Loop, Terms Query
Pro Looping Through a Cloneable Meta Box Sub Field in BricksThis Pro tutorial shows how a custom query type can be set up in Bricks to render YouTube videos (via the built-in Video element) whose…Read more →Categories: Bricks, Plugins, ProTags: bricks/query/run, bricks/setup/control_options, Custom Query Type, Filters, Meta Box, Query Loop
How to populate a map with dynamic markers from a CPT using ACF in Bricks (PART 1)This tutorial provides the PHP & JS codes that can be pasted in order to create a dynamic map with markers populated from a custom…Read more →Categories: Bricks, Free, PluginsTags: ACF, Maps, Query Loop
Pro Masonry for Query Loop in BricksIf you are looking to implement masonry with a 'view more' button i.e., click-type of infinite scroll follow this tutorial instead. Updated on 15 Mar…Read more →Categories: Bricks, ProTags: Masonry, Query Loop
Pro Top-level Pages and Children Bricks Query LoopThis Pro tutorial for Bricks users can be considered Part 2 or a variation of the earlier Bricks Query Loop for Top-level Parent Pages with…Read more →Categories: Bricks, ProTags: Nested Queries