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 633 Bricks code tutorials with BricksLabs Pro
Pro How to Insert Element(s) Between Query Loop Posts in BricksUpdate on 16 Aug 2023: Follow this tutorial instead. This Pro tutorial shows how we can insert a Div (or any custom HTML) after nth…Read more →Categories: Bricks, ProTags: Conditions, Dynamic Data, Query Loop
Pro Weekday Column Posts Bricks Query LoopThe steps to arrange the posts output by a Bricks query loop(s) in weekday columns based on a weekday custom field.Read more →Categories: Bricks, ProTags: CSS Grid, Data Attributes, Nested Queries, Query Loop
Pro WooCommerce Product Reviews Bricks Query LoopCreating a custom query loop for WooCommerce product reviews for building custom review layouts.Read more →Categories: Bricks, Plugins, ProTags: Custom Query Type, WooCommerce
Adding any Custom WP_Query loop to Bricks’ Query LoopSometimes we may need to create a custom post loop using Bricks' query loop feature, but wish to use our own WP_Query code for more…Read more →Categories: Bricks, FreeTags: bricks/query/run, Query Loop, WP_Query
Pro Posts Grouped by Authors in BricksThis Pro tutorial for Bricks users provides the steps to loop through users and inside that, through posts whilst setting the inner query's author parameter…Read more →Categories: Bricks, ProTags: bricks/posts/query_vars, Query Loop
How to populate a map with dynamic markers from a CPT using ACF in Bricks (PART 3)This tutorial provides the PHP & JS codes that can be pasted in order to filter your markers on a map each time you digit…Read more →Categories: Bricks, Free, PluginsTags: ACF, Animations, Filters, Isotope, Leaflet, Maps, 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 Bricks Query Loop for Top-level Parent Pages with ChildrenIn the Bricks Facebook group, a user asked: Looking for a custom query to output a list of posts in the same hierarchy that the…Read more →Categories: Bricks, ProTags: Nested Queries, Query Loop
Pro Categories and SubCategories Query Loop Tabs in BricksLearn how to show top-level parent categories as tab titles and the corresponding subcategories as tab contents using Bricks nested queries.Read more →Categories: Bricks, ProTags: Nested Queries, Query Loop