Query Loop

The Query Loop block is extended by the Greyd Plugin with several advanced controls and custom features designed to improve layout control and visual styling:

In the Advanced section, you can find settings for HTML anchor, additional CSS classes, HTML element (provided by Core), CSS Animation, toggles to hide the block per breakpoint and inline styling.

Advanced Filter

The Advanced Filter lets you precisely control which posts are rendered in a Query Loop. Once enabled, you’ll see a new panel in the block sidebar where you can add multiple filters based on the selected Post Type.

You can filter by taxonomy, meta fields, author, date ranges, or even select individual posts. Filters can be combined freely, and results can be sorted or reordered.

Screenshot showing the the advanced filter panel as described

Each filter includes a Reverse / Exclude toggle that inverts the filter result — useful when you want to hide, not show, certain posts. The “Advanced Filter” is also compatible with the ACF Integration feature, allowing you to filter posts based on ACF-created fields.

Clicking on + Add filter adds a new empty filter, where you can choose from the following types:

Filter by taxonomy

Screenshot of the Taxonomy filter option with expanded dropdown menu, explained in the following paragraph.

The “Filter by taxonomy” option allows you to show only posts that have specific terms assigned in a taxonomy. This includes both custom taxonomies and site-wide taxonomies created via the Post Types feature.

Once a taxonomy is selected, a token field appears with suggestions based on available terms. Additionally, you can insert dynamic placeholders like “Terms of the current post,” “Terms of the current archive,” or “Posts with terms” to build context-aware filters.

Filter by meta field

Screenshot of the Meta field filter option with various options, explained in the following paragraph.

The “Filter by meta field” option lets you filter posts based on custom field values. You can choose to include posts where the field is set, has an exact value, or contains a partial value. For the last two options, a separate input field to match the correct value is displayed if you select them.

Filter by authors

Screenshot of the authors filter option with expanded dropdown menu, explained in the following paragraph.

The “Filter by authors” option is only available for Post Types that support authors. It enables filtering posts by specific users on the site. In addition to choosing one or more specific authors, the filter offers dynamic suggestions like “Author of the current post” or “Posts with author,” which adapt based on the current page or template.

Filter by date

Screenshot of the Date filter option with various options, explained in the following paragraph.

With the “Filter by date” option, you can limit results to a specific date or range. You can select from date-type fields of the current Post Type, including the standard post date and any custom fields of type “date” or “datetime.”

You can choose to start from / end until a specific date, or create a dynamic value from today with an offset for both of these. You can choose from days, weeks, months or years combined with a number, for example “Today minus 2 weeks”.

Select individual posts

Screenshot of the Individual Posts selection option with expanded dropdown menu, explained in the following paragraph.

The “Select individual posts” filter allows you to manually select specific posts to display in the loop. A token field lets you search and pick from all available posts of the selected Post Type.

You can also use the dynamic “Current post” suggestion to reference the page or post that the Query Loop is embedded in.

Sort results

Screenshot of the Sort results filter with sorting order options shown in the expanded dropdown menu, explained in the following paragraph.

Finally, the “Sort results” filter defines the order in which posts appear. Sorting options include “New to old”, “A → Z”, “Meta ascending” and “Random”.

If you choose to sort by a custom field, additional radio options become available to define the comparison type: alphabetical, chronological, numerical, or automatic detection based on field type.

Only one sort filter can be active per Query Loop.

More in this section

  • Post Slider variation

    The Post Slider is an enhanced variation of the core “Post Template” block and can be found in the “Greyd” category of the block inserter. You can transform a regular “Post Template” variation into a “Post Slider” at any time using the block toolbar or the sidebar — and just as easily switch back. Unlike […]

    Read more