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 Meta Box Image Advanced Galleries using lightGallery in BricksShowing images in a lightGallery from Image Advanced sub fields inside a Meta Box Group Field.Read more →Categories: Bricks, Plugins, ProTags: Gallery, lightGallery, Media, Meta Box, Query Loop
Pro Upcoming Events Grouped by ‘Month Year’ in BricksA custom query loop type for showing future events based on a date custom field using three nested query loops.Read more →Categories: Bricks, ProTags: ACF, Custom Query Type, Query Loop
Pro Ordering Posts by Terms in BricksHow to output upcoming events at the top and past events below in a single query loop in Bricks.Read more →Categories: Bricks, ProTags: Query Loop
Pro Category Posts Accordion in BricksThis Pro tutorial provides the steps to set up a dynamic accordion of posts grouped by their categories based on the previous Posts Grouped by…Read more →Categories: Bricks, ProTags: Accordion, bricks/posts/query_vars, Nested Queries
How to add a layout toggle on query loops in BricksIn this tutorial, we’ll show you how to change the layout of your query loop container based on the click of an icon toggle sitting…Read more →Categories: Bricks, FreeTags: Query Loop
Query Results Count in BricksFrom Bricks v1.9.1 we can now get the query result count of any query based on the Bricks ID.Read more →Categories: Bricks, FreeTags: query_results_count
Filtering Bricks Posts Query Loop by Meta Box Group’s Radio Subfield ValueIn the past we showed how a Bricks posts query loop can be filtered by Meta Box group's subfield of types text/number and Datepicker here.…Read more →Categories: Bricks, PluginsTags: Meta Box, 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 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