In the Bricks Facebook group a user asks:
Hello folks, Is there a way to display an element x times where x is a number stored in a meta field?
Bricks 2.2 added a new new query type of Array and this can be used to display an element as many times as the value of a custom field.
Consider a custom field created with ACF named number_of_icons_to_display of type Number for the page post type.
For a specific Page, let's say the value for this is set to 6.

After implementing the code:


This Pro tutorial shows how this can be done.
Step 1
Create a custom function that returns an array of numbers from 1 to n where n is the meta value. This function can then be echoed for the Array query type to make the Icon be output 6 (in this example) times.
Add the following in child theme's functions.php (w/o the opening PHP tag) or a code snippets plugin:
This is a BricksLabs Pro tutorial.
For full access login below or create your BricksLabs Pro account