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 630 Bricks code tutorials with BricksLabs Pro
Pro ACF Flexible Content Gallery Field Bricks PHP QueryA walk through on setting up a ACF Flexible Content field with a couple of different layouts.Read more →Categories: Bricks, Plugins, ProTags: ACF Gallery, ACF Pro, Flexible Content, PHP Query, render_tag
Pro Conditionally Hiding Bricks Filters based on Select Filter ValueHow show or hide Bricks' filter based on the selection made by another filter.Read more →Categories: Bricks, Plugins, ProTags: ACF, Filters, JS
How to populate a map with dynamic markers from a CPT using ACF in Bricks (PART 4)This tutorial provides the PHP & JS codes that can be pasted in order to filter your markers on a map based on terms of…Read more →Categories: Bricks, Free, PluginsTags: ACF, Animations, Filters, Isotope, Leaflet, Query Loop
Pro YouTube Video Timestamps in BricksThis Pro tutorial provides the steps to output a YouTube video given its ID with custom timestamps and their description text using ACF Pro or…Read more →Categories: Bricks, Plugins, ProTags: ACF Pro, ACF Repeater, Interactions, Loop Index, Meta Box
How to Show Future Events in BricksOne of the common requirements in WordPress is being able to filter the events (or could be posts of any post type) to only those…Read more →Categories: Bricks, FreeTags: Meta Query
Pro Upcoming Events in Bricks Grouped by ‘Month Year’ with Frontend Filtering by Event TypeUpdated version of the earlier Upcoming Events Grouped by ‘Month Year’ in Bricks tutorial with some improvements:Read more →Categories: Bricks, JavaScript, Plugins, ProTags: Nested Queries, Query Loop
Pro Filtering Cloneable Meta Box Group by Sub Field Value in BricksThis Pro tutorial provides the steps to filter the rows of a Meta Box cloneable group to only those that have a date custom field…Read more →Categories: Bricks, Plugins, ProTags: bricks/query/run, Meta Box
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 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