29th Nov '22/8 commentsLimit the Number of Posts in a Bricks Query Loop of Relationship TypeSridhar Katakam Updated on 12 Dec 2023 Bricks Query Loop popup does not have a control for setting the number of posts to be output when the query type is a non-standard one like ACF Repeater, ACF Relationship, Meta Box Relationship. This Pro tutorial shows how. Add the following in child theme's functions.php (w/o the opening PHP tag) or a code snippets plugin: This is a BricksLabs Pro tutorial. For full access login below or create your BricksLabs Pro account Username Password Remember Me Forgot Password Tagged: Bricksbricks/query/runFiltersProQuery LoopSridhar KatakamSridhar Katakam is a Bricks enthusiast. He likes helping others by researching and solving WordPress-related problems and building websites.Get access to all 634 Bricks code tutorials with BricksLabs Pro
Pro Category and Search Filtering for Nested Bricks Query LoopsHow to add a category dropdown and search input field so visitors can filter posts grouped by categories..Read more →Categories: Bricks, JavaScript, ProTags: Frontend Filters, Nested Queries
Pro YouTube Playlist Bricks Query LoopA custom query type, for displaying YouTube playlist in a Bricks query loop.Read more →Categories: Bricks, ProTags: API, Custom Query Type, Query Loop, YouTube
Pro Recently Viewed Posts Bricks Query LoopHow to output the most recent X number of posts (any post type) viewed by the current visitor.Read more →Categories: Bricks, ProTags: Cookies, Query Loop
Bricks Templates Query LoopHow display Bricks Templates with saved screenshots in a query loop.Read more →Categories: Bricks, FreeTags: Query Loop
Pro Mixed Post Types Grid in BricksHow to set up a mixed post types grid in Bricks, where you can display both standard posts and custom quote cards in alternating positions.Read more →Categories: Bricks, ProTags: 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
Pro Posts Grouped by Post Dates in BricksSetting up query loops for “Post Dates” with an the inner loop displaying all posts published on that day.Read more →Categories: Bricks, ProTags: Nested Queries
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
How to apply a custom query var to multiple query loops in BricksIn this tutorial, we'll learn how to apply a PHP filter to modify the query var of multiple query loops in a single function Introduction…Read more →Categories: Bricks, FreeTags: Dynamic Data, Query Loop