Skip to content

How to Create Elementor Loop with Custom Post Query?

Table Of Content

Where the previous Custom Query doc focused on blog posts specifically, the same mechanism works for any post type’s loop.

Set Post Listing Types itself to Custom Query to hand the whole loop over to a query your theme or a companion snippet defines, rather than the built-in Content Source filters.

For the full settings tour of the Dynamic Listing widget, see Dynamic Listing Widget Settings Overview.

Requirement – This widget is a part of The Plus Addons for Elementor Pro, make sure it’s installed & activated to enjoy all its powers.

Before You Start

  • Prerequisite: Elementor (free) installed and active.
  • Edition: Dynamic Listing is a Pro widget – it needs The Plus Addons for Elementor Pro installed and its license activated. It will not appear in the free plugin.
  • Widget to enable: go to The Plus Addons > Widgets, search for Dynamic Listing and turn its toggle on.

Steps

  • Add the Dynamic Listing widget to the page.
  • Set Post Listing Types to Custom Query.
  • Set the accompanying Query ID field so a developer’s query filter can target this specific widget instance.
Post listing types set to custom query with a query id entered

Settings Overview

SettingWhat it doesDefault
Post Listing TypesCustom Query hands the loop to a developer-defined query.Page Listing
Query IDIdentifier the developer’s query filter matches against.(empty)

Limitations

  • As with the blog-specific Custom Query doc, this needs a developer to register the matching query filter in code – the panel field alone does not construct the query.

Related Docs

Not verified

So you know exactly what has and has not been checked:

  • Whether Post Listing Types = Custom Query and the Content Layout tab’s separate Custom Query popover toggle are the same underlying mechanism or two distinct hook points was not conclusively resolved from the control model alone.

Related Frequently Asked Questions

Related Docs