MENU

Fun & Interesting

Bricks Builder: : Query Loop anything from any API!

WP Easy 2,077 4 months ago
Video Not Working? Fix It Now

** Intermediate Level. PHP Coding** In this video, I show how to * add a Custom Query to the Bricks Query Loop * add custom controls to the query for our settings * add a dynamic tag to access deep array values using dot notation * consume API Endpoints for our Query Loop: - Google Reviews - DummyJSON.com posts This demonstrates that you can use any API that returns an array of items and display them in Bricks using a standard Loop. 00:00 Introduction 01:16 Visual description of the task 08:49 Code walkthrough 09:00 Common functions / code for all APIs 09:01 Debugging with BugFu 10:18 Adding the dynamic tag 11:50: Rendering the dynamic data from the tag 13:45 Getting the wanted value from the current Loop Object (Array) with Dot Notation 15:41 Code walk through for DummyJSON GIST code: https://gist.github.com/wpeasy/9ec1dfbe8411dd56657a0eca920552ef

Comment