🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Entries Query Loop for Bricks Builder Setup Guide

Updated 7 min read Bricks Builder Entries & Workflow
On this page
  1. Installation
  2. Decide who may see the entries
  3. Create an entries loop
  4. Query settings
  5. Dynamic data tags
  6. Pagination
  7. Common layouts
  8. License
  9. Troubleshooting

The Gravity Forms Entries Query Loop for Bricks Builder adds a query type called Gravity Forms entries to the Bricks query loop. You design one entry with ordinary Bricks elements and Bricks repeats it for every entry that matches your settings. This guide covers installation, the query settings, the visibility rules, the dynamic data tags, pagination and a few common layouts.

A Bricks page for the fictional Riverside Makers Market titled Meet this season's makers: six white cards in a three-column grid, each built from one Gravity Forms vendor application with a round logo, business name, owner name and city, an orange category pill, a short description, a bulleted product list, booth size and application date, and a dark Visit website button; below the grid the text 12 vendors and page links 1, 2 and next with the current page in orange
A public vendor directory: one Bricks card per Gravity Forms entry, with the Entries pagination element below.

Requirements

  • WordPress 6.5 or newer, PHP 7.4 or newer.
  • Gravity Forms 2.7 or newer (tested with 2.9 and 3.1).
  • The Bricks Builder theme (or a Bricks child theme).
  • A GravityExtra license key for this add-on.

Installation

  1. Download the add-on zip from your GravityExtra account.
  2. In WordPress go to Plugins → Add New → Upload Plugin, choose the zip, click Install Now and then Activate.
  3. Go to Forms → Settings → Bricks Entries Loop, paste your license key and click Activate License.

Decide who may see the entries

Form entries often hold names, e-mail addresses and other personal data, so the add-on starts closed. Each loop has a Who can see these entries setting with four choices:

  • Users with a capability (default): only logged-in users with the capability you enter. Leave the field empty to use gravityforms_view_entries, the Gravity Forms permission for viewing entries. Use this for office dashboards and internal lists.
  • Logged-in user, own entries only: each logged-in user sees the entries they submitted while logged in. Visitors see nothing. Use it for “My applications” or “My bookings” pages.
  • Any logged-in user: every logged-in user sees the entries. Works only for forms you allow (see below).
  • Everyone: visitors too. Works only for forms you allow. Use it for public directories, testimonial walls or event line-ups.

The allow-list lives in Forms → Settings → Bricks Entries Loop → Open loops. Nothing is ticked after installation, so a loop set to “Everyone” stays empty until you tick its form. This protects you from publishing a private form by picking the wrong form in the builder. The IP address and user agent of an entry are never available as tags, whatever the setting.

Tip

Design public directories from forms that are meant to be public, for example a “Directory listing” form with only the fields you want to show. Keep contact details in a separate private form if you need them.

Create an entries loop

  1. Edit a page, template or popup with Bricks.
  2. Add a Container, Block or Div. This element is the repeated item; put it inside a grid container if you want cards.
  3. In the Content tab turn on Query loop, open the query settings and set Type to Gravity Forms entries.
  4. Below the query settings, pick the Form and the visibility rule.
  5. Add elements inside the loop item and use the dynamic data tags described below.

Query settings

  • Form: the active forms, listed by title and ID. Form ID (dynamic data) overrides it with a tag that returns a number, for example {cf_form_id} from a custom field.
  • Entries: all active entries, starred, unread or read entries. Spam and trashed entries are never listed.
  • Only entries of the current user: adds “created by the current user” to any rule. Visitors get no results.
  • Payment status: Paid, Pending, Processing, Active, Authorized, Cancelled, Expired, Failed, Refunded or Voided, for forms that take payments.
  • Field filters: one row per rule with a field ID (4), an input ID for multi-input fields (9.3 is the city of an address field) or an entry property (id, date_created, created_by, source_url, payment_amount, transaction_id). Operators are is, is not, contains, greater than, less than, is one of and is none of. For the last two, separate values with commas. Values accept dynamic data such as {url_parameter:city} or {wp_user_email}.
  • Field filters match: all filters (AND) or any filter (OR). With “any”, the other settings (status, search, dates, payment) still apply to every result.
  • Search: entries with the text in any field. {url_parameter:q} turns a simple GET form or a link into a search box.
  • Submitted from / until: a date such as 2026-01-01 or a relative value such as -30 days or today, in the site time zone. Dynamic data works here too.
  • Order by: date submitted, date updated, entry ID or a field value. For a field, enter the field ID and tick Numeric sort for numbers. Then choose ascending or descending.
  • Entries per page (1 to 100, default 10) and Offset (skip the first entries, for example to show the newest entry in a hero and the rest below).

The Bricks “No results” text of the query settings is shown when nothing matches or when the visitor may not see the entries, so you can write a friendly message such as “Log in to see your applications”.

A Bricks table titled Vendor applications with a dark header row and five Gravity Forms entries: entry ID, business and contact name, email and multi-line studio address, category, a green payment status pill with the amount in pounds, the application date and the name of the user who submitted it; below the table 12 applications and page links 1, 2, 3 with the text Page 1 of 3
A private office table: the same entries as table rows, visible only to users who can view entries.

Dynamic data tags

Inside the loop, these tags read the current entry. They work in any text, link or image field of a Bricks element. Outside an entries loop they return nothing.

  • {gf_entry:2}: the value of field 2, formatted by Gravity Forms (names, addresses, checkboxes, numbers, dates). List fields return a bulleted list; file upload fields return links with the file names.
  • {gf_entry:2:label}: the field label.
  • {gf_entry:2:raw}: the stored value without formatting.
  • {gf_entry:7:url}: the first file of a file upload field. Use it in an Image element (dynamic data) or as a link. {gf_entry:7:urls} returns all files, separated by commas. Files are served through the Gravity Forms download links.
  • {gf_entry:1.3}: one input of a multi-input field, for example the first name (1.3) and last name (1.6) of a name field, or street (9.1) and city (9.3) of an address field.
  • {gf_entry_meta:id}, {gf_entry_meta:date_created}, {gf_entry_meta:date_updated}, {gf_entry_meta:payment_date}: dates use the WordPress date format; add a PHP date format after a colon, for example {gf_entry_meta:date_created:j M Y}.
  • {gf_entry_meta:created_by} (display name; :id for the user ID), {gf_entry_meta:payment_status}, {gf_entry_meta:payment_amount} (formatted in the entry currency; :raw for the number), {gf_entry_meta:transaction_id}, {gf_entry_meta:source_url}, {gf_entry_meta:is_starred}, {gf_entry_meta:form_title}.

Every value is escaped before it reaches the page, so HTML or scripts typed into a form are shown as plain text or removed. The Bricks tag picker lists the meta tags and the fields of your active forms under Gravity Forms entry. The Bricks tag {query_results_count} returns the total number of matching entries, not only those on the current page.

Pagination

Add the Entries pagination element (category GravityExtra) after the loop and select the loop in Entries loop. It shows numbered page links, previous and next links and, optionally, “Page X of Y”. The page number is kept in a URL parameter per loop, so two loops on one page page independently and the links keep your other parameters such as a search term. Style tab controls cover alignment, gap, typography, link and current page colours, border and padding.

The Bricks “Load more” interaction and infinite scroll of the query settings receive the number of pages from the add-on as well. The built-in Bricks Pagination element only supports the Bricks query types, which is why the add-on brings its own.

A Bricks page titled My applications for a logged-in vendor, showing only her own four Gravity Forms entries as cards with logo, business name, owner and city, category pill, description, product list, booth size, date and a Visit website button
“My applications”: the loop set to own entries shows a logged-in user only what they submitted.

Common layouts

  • Directory of cards: a grid container with the loop item as a card, an Image element with {gf_entry:7:url}, a Heading with the business name field and a Button linking to the website field. Visibility “Everyone” and the form ticked in the allow-list.
  • Office table: a Block with the HTML tag set to table, a header row and a tbody Block that contains the loop item with the tag tr; each cell is a Basic Text element with the tag td. Keep the default capability visibility.
  • My submissions: visibility “own entries only”, a friendly no-results text, and payment or status tags so customers can check their entries without access to the dashboard.
  • Filtered landing pages: a field filter with a fixed value (category is Ceramics) or a URL parameter ({url_parameter:category}) so one template serves several lists.

License

Without an active license the basic list keeps working: form, entry status, own entries, ordering by date or ID, entries per page, offset, pagination, {gf_entry:FIELD_ID}, {gf_entry_meta:id} and {gf_entry_meta:date_created}. Field filters, search, date range, payment status, ordering by a field and the other tags need the license. The builder shows a short note in the query settings when the license is not active.

Troubleshooting

  • The loop is empty: check the visibility rule first. Are you logged in as a user with the capability? Is the form ticked in the allow-list for “Everyone” or “Any logged-in user” loops? Then remove filters one by one.
  • A tag prints nothing: check the field ID in the form editor, use an input ID such as 1.3 for parts of a name or address, and make sure the element is inside the loop item.
  • Wrong order for numbers: tick Numeric sort when ordering by a number field.
  • The type is missing from the Type list: Gravity Forms and the add-on must both be active and the theme must be Bricks or a Bricks child theme.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr