panel:

Settings Dialogue Box

Settings Dialogue Box

Related help

Magic Fields

Magic Fields

In WordPress, ‘Magic Fields’ are custom fields that can be dynamically replaced with specific values when a page loads. You can select Magic Fields from certain drop-down input field where you see an option surrounded by quotation marks. When your AGB grid runs, it replaces the magic fields with corresponding values that are relative to the post that is currently loading. This is particularly useful when adding your AGB grid to an archive page, which is a special type of page that aggregates certain types of content, like posts from a specific category or date range. The values for the magic field would vary depending on the specific content being loaded on the archive page.

Fields

%post_slug%

The term ‘slug’ in WordPress refers to a URL-friendly version of a post or page title. It’s used in the web address of the post or page and is often based on the title of the post or page. This field will return the slug of the currently loading post or page.

A use case for this magic field is you want to build a photo gallery with Advanced Grid Builder using images that are related to the current page. Using the Media Library, a built-in WordPress tool for managing media files, you can add a category to those images you want included that has the same category term slug as the page slug on which it should appear.

Magic Fields

%attached_terms%

In WordPress, ‘terms’ are the items in a taxonomy. A taxonomy is a way of grouping posts together based on a select number of relationships. For example, ‘Category’ and ‘Tag’ are two built-in taxonomies in WordPress. This field is replaced by the list of terms in the same taxonomy you have set in the “Taxonomy filter” field that are attached to the current page.

For example, you want to include an Advanced Grid Builder in your post that displays all other posts with the same Taxonomy terms as the current post. If you are using the ‘Category’ taxonomy, and the current page has the ‘latest_news’ term, you would configure your Advanced Grid Builder accordingly.

Magic Fields