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 630 Bricks code tutorials with BricksLabs Pro
How to show data of a post whose ID is the value of a URL parameter in BricksIn the Bricks Facebook group, a user asks: Hey Everyone,I am trying to create the following:1- I have a Custom Post Type2- I have a…Read more →Categories: Bricks, FreeTags: url_parameter
Loop Item ID and Loop Item Object in BricksIf you are working on a Bricks site with specific requirements, chances are you need to grab the ID and/or object of the current item…Read more →Categories: Bricks, FreeTags: \Bricks\Query
Pro Post-specific ACF Repeater Galleries as Sliders in BricksHow to output ACF Repeater field rows with the images of the Gallery-type sub field as a slider.Read more →Categories: Bricks, Plugins, ProTags: ACF Pro, Nested Queries
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
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 6 Random Posts from Tag A + 6 Random Posts from Tag B in a Single Bricks Query LoopDisplaying two set of random posts, inside one query loop.Read more →Categories: Bricks, ProTags: Query Loop
Pro Conditionally Outputting Query Loop Item Based on Post Meta in BricksRendering query-loop enabled posts depending on the value of each post's custom field value is tricky because by default, the custom field plugins' functions or…Read more →Categories: Bricks, ProTags: bricks/element/render
Pro Current Single Post Reference From Inside a Bricks Query LoopUse case: Get the single post’s custom field (like ACF Repeater or Meta Box Group) array row corresponding to the loop’s counter/indexRead more →Categories: Bricks, ProTags: 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