Skip to main content

Loop Fields

About This Article

This article covers built-in WordPress dynamic data FIELDS that are automatically available in Builderius without custom queries. All fields shown work immediately when you add them to elements.

Understand the Tables

Table Columns

Dynamic Data Tag - The tag automatically added when you select from the Dynamic Data dropdown, using curly bracket syntax: {{field_name}}

Description - What content this tag will display on your website

Type - What kind of data this field returns

Data Types Explained

String - Text content like "How to Build Better Websites" or "https://example.com/my-post"

Int - Whole numbers like post ID 142 or loop index 3

Mixed - Variable content that depends on your custom fields and the current loop item

How to Use This Data

Click the Dynamic Data Icon available on each Builderius element. Search for what you want and add it.

Built-in loop availability - All data shown works inside Collection elements when using built-in WordPress arrays (wp data sources), ACF repeater fields, or MetaBox repeater/group fields

Loop Scope

Data about the current item when looping through built-in WordPress arrays using Collection elements. Available inside Collection element templates when your data source is a built-in WordPress array like [[wp.archive.posts_query.posts]], [[wp.nav_menu__main_menu]], or ACF repeater fields Pro feature, or MetaBox group/repeater fields Pro feature - includes current item fields, relationships, and custom fields automatically.

Custom Query Loops

Custom GraphQL query loops work differently - only fields you explicitly query for are available as {{field_name}}. See the Custom Query Scope article for details on defining your own loop data structure.

Built-in Data Tags (Direct Use)

These fields work immediately inside Collection element templates when using wp data sources - no setup required.

Current Item Access (Posts Loop)

Dynamic Data TagDescriptionType
{{ID}}Current post IDInt
{{post_title}}Current post titleString
{{post_content}}Current post contentString
{{post_excerpt}}Current post excerptString
{{post_date}}Current post publication dateString
{{post_datetime}}Current post publication datetimeString
{{post_modified_date}}Current post last modified dateString
{{post_modified_datetime}}Current post last modified datetimeString
{{post_status}}Current post statusString
{{post_type}}Current post typeString
{{link}}Current post URLString
Dynamic Data TagDescriptionType
{{post_featured_image.file_url}}Current post featured image URLString
{{post_featured_image.alt_text}}Current post featured image alt textString
{{post_featured_image.caption}}Current post featured image captionString
{{post_featured_image.sizes}}Current post featured image size dataMixed

Current Item Taxonomy (Posts Loop)

Dynamic Data TagDescriptionType
{{category_names}}Current post category namesString
{{category_links}}Current post category HTML linksString
{{tag_names}}Current post tag namesString
{{tag_links}}Current post tag HTML linksString

Current Item Author (Posts Loop)

Dynamic Data TagDescriptionType
{{post_author.name}}Current post author usernameString
{{post_author.ID}}Current post author IDInt
{{post_author.display_name}}Current post author display nameString
{{post_author.first_name}}Current post author first nameString
{{post_author.last_name}}Current post author last nameString
{{post_author.email}}Current post author emailString
{{post_author.avatar}}Current post author avatar URLString

Current Item Meta & Custom Fields (Posts Loop)

Dynamic Data TagDescriptionType
{{meta_field__field_name}}Current post meta field (replace field_name with actual meta key)Mixed
{{acf_field__field_name}}Current post ACF field (replace field_name with your ACF field name)Mixed
{{mb_field__field_name}}Current post MetaBox field (replace field_name with your MetaBox field name)Mixed

Helper Array FIelds

Dynamic Data TagDescriptionType
{{.}}Current array wildcard item value (print all available fields inside loop)String
{{index}}Current array order number (print array item number)String

Usage Examples


<!-- Collection element data source: [[wp.archive.posts_query.posts]] -->
<!-- Inside Collection template: -->

<article class="post-card">
<header>
<h2><a href="{{link}}">{{post_title}}</a></h2>
<div class="meta">
<time>{{post_date}}</time>
<span>by {{post_author.display_name}}</span>
</div>
</header>

<img src="{{post_featured_image.file_url}}" alt="{{post_featured_image.alt_text}}">

<div class="content">
<p>{{post_excerpt}}</p>
</div>

<footer>
<span>Categories: {{category_links}}</span>
<span>Tags: {{tag_links}}</span>
</footer>
</article>