5th Mar '24/8 commentsPost Views Counter Query Loop in BricksSridhar Katakam Looking to output the most viewed posts in your Bricks site in a query loop? This Pro tutorial shows how. Install and activate the free Post Views Counter plugin. Select post types for which post views will be counted in the plugin's settings. It is enable for post by default. In the Bricks editor, set up a query loop on a Block element, enable PHP query editor in the query popup and 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: BricksPluginsProQuery 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 610 Bricks code tutorials with BricksLabs Pro
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 WordPress Posts using WP REST API in BricksThe steps to display posts from any WordPress site that has WP REST API enabled in Bricks builder using a custom query type.Read more →Categories: Bricks, ProTags: Custom Query Type
Pro ACF Post Object Query Loop inside a Posts Query Loop in BricksHow to loop through a CPT and within each post, output a list of related posts.Read more →Categories: Bricks, Plugins, ProTags: ACF, Nested Queries
Pro Staggered Entry Animations for Posts in Bricks Query LoopsThe steps for animating the posts output by a Bricks query loop in a staggered animation.Read more →Categories: Bricks, JavaScript, Plugins, ProTags: Animations, Query Loop
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 Filtering Posts of a Bricks Query Loop by Meta Box Group’s Subfield ValueHow a Bricks filter can be used to limit the posts output by a Posts query loop based on a Meta Box group’s subfield value.Read more →Categories: Bricks, Plugins, ProTags: bricks/query/result, Filters, Query Loop
Pro Limit the Number of Posts in a Bricks Query Loop of Relationship TypeUpdated on 12 Dec 2023 Bricks Query Loop popup does not have a control for setting the number of posts to be output when the…Read more →Categories: Bricks, ProTags: bricks/query/run, Filters, Query Loop
Pro Alternating Posts from Two Post Types in BricksHow to output posts from two seperate post types, alternating in a query loop.Read more →Categories: Bricks, ProTags: Query Loop
Pro Google Calendar Query Loop in BricksUsing a query loop to pull events from a public Google Calendar and output names, dates & times and descriptions.Read more →Categories: Bricks, ProTags: Custom Query Type, Google Calendar, Query Loop