A query in Elementor is a way to request specific content from your website’s database. It allows you to display posts, pages, products, or custom content dynamically—filtered by parameters like category, author, date, or tags. These queries are essential for powering dynamic content widgets like Loop Grid, Posts, Products, or Archive pages.
🛠️ When You’ll Use Queries
Queries are especially useful when you want to:
Show specific product categories in a grid
Build dynamic archive or taxonomy-based pages
Display blog posts filtered by certain tags, categories, or custom fields
Automatically suggest related content
➕ How to Add a Query in Elementor
Select a widget that supports queries (such as Loop Grid or Posts).
Go to the Content → Layout panel.
Choose a content template type (Posts, Products, Taxonomy, etc.).
In the Query section, choose a Source:
Posts, Pages, Products (if applicable)
Manual Selection (choose items one by one)
Current Query (continue or refine an existing WordPress query)
Related (dynamically fetch similar items using taxonomy)
⚙️ Filter Options (Include or Exclude)
Each source type offers inclusion and exclusion filters:
By Terms: Filter by categories, tags, or custom taxonomies
By Author: Limit results by specific author names
By Date: Choose presets like “Past Week” or define a custom range
By Order: Sort by Date, Title, Menu Order, Last Modified, Comment Count, or Random
Sticky Posts: Option to ignore or include sticky posts
Product-specific Options: Order by Rating, Popularity, or Menu Order
These settings help you fine-tune exactly what appears in your grid or listing.
🧩 Using Taxonomy Templates (Post/Product Categories, Brands, etc.)
When displaying taxonomies such as post categories or product brands, you can:
Choose all terms or manually select specific ones
Sort by name or ID
Set the order (ascending or descending)
Hide empty terms
Set depth (for hierarchical taxonomies like categories)
Assign a Query ID for advanced usage with code filters
You can also exclude specific terms and control hierarchical depth display if needed.
🔎 Query Use Case Examples
Blog Posts Grid: Show all posts in the “Travel” category that also have the “Budget” tag, ordered by newest first.
Product Display: Load only “Eco-Friendly” products, sorted alphabetically.
Portfolio Loop: Present projects by a certain author or with a specific custom taxonomy.
🧠 Summary of Key Features
Elementor’s query options let you:
Dynamically filter and display any content
Use preset or custom filters like taxonomy, author, date, order, etc.
Control what content is shown and how it’s organized
Apply Query IDs to connect with custom WP_Query code filters
Mix and match settings to create precisely tailored content displays
✅ Pro Tips
Use Manual Selection for complete control over individual posts/products
Use Query ID if you plan to hook into the query using code later
Use Related Source to build context-aware displays (like related products or posts)
Use custom filters (in Elementor Pro) for deeper control using WordPress development skills