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 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 ACF User Field Bricks PHP QueryIn the Bricks Facebook group a user asks: my end goal was to create a set of cards that would display the Users that are…Read more →Categories: Bricks, Plugins, ProTags: ACF, Users Query
Posts Related by Current Post’s Terms in BricksShowing other posts assigned to the same categories/tags/custom taxonomy terms as the current post.Read more →Categories: Bricks, FreeTags: Query Loop
Pro Post Data for the Current User in Bricks with Meta BoxHow to configure a query loop to output the post data of the SalesRep CPT associated with the current user.Read more →Categories: Bricks, Plugins, ProTags: Meta Box, Query Loop
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 Non-empty events sorted by event date and other posts below in BricksUpdated on 15 Jan 2024 Consider a scenario where you are showing posts from multiple post types namely post, event and game in a single…Read more →Categories: Bricks, ProTags: meta_query
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 Grouping ACF Post Objects by a Repeater Sub Field in BricksConsider the following scenario. CPT: product (from WooCommerce) ACF field group for the product post type: A Repeater with a Select sub field and Post…Read more →Categories: Bricks, Plugins, ProTags: ACF, bricks/query/run, Custom Query Type, Query Loop
Pro Related Posts by Taxonomy in BricksIn the previous Posts Related by Current Post's Terms in Bricks tutorial, we showed how posts related to the current single post that have the…Read more →Categories: Bricks, ProTags: Query Loop, Related Posts