---
title: "How to Create Elementor Loop with Custom Post Query?"
url: https://theplusaddons.com/docs/create-elementor-loop-with-custom-post-query/
date: 2023-08-28
modified: 2026-05-19
author: "Aditya Sharma"
description: "Do you want to display posts based on a custom query with a custom loop design in Elementor? Combining a custom post query with a bespoke layout gives you precise..."
image: https://theplusaddons.com/wp-content/uploads/2023/08/How-to-Create-Elementor-Loop-with-Custom-Post-Query_-1024x536.jpg
word_count: 408
---

# How to Create Elementor Loop with Custom Post Query?

## Key Takeaways

- Dynamic Listing widget from The Plus Addons for Elementor allows users to display posts based on a custom query with a bespoke layout.
- Users can combine up to 5 templates together by turning on the Multiple Loops toggle in the Dynamic Listing widget.
- The Custom Query option in the Dynamic Listing widget is intended for advanced users comfortable writing custom PHP code.

Do you want to display posts based on a custom query with a custom loop design in Elementor? Combining a custom post query with a bespoke layout gives you precise control over which content appears on your page and exactly how it looks.

With the Dynamic Listing widget from The Plus Addons for Elementor, you can add a custom query to display posts based on your unique criteria using a custom loop skin.

*To check the complete feature overview documentation of The Plus Addons for Elementor Dynamic Listing widget, [click here](/docs/dynamic-listing-widget-settings-overview/).*

**Requirement** – This widget is a part of The Plus Addons for Elementor. Make sure it is installed and activated.

**Best Used For:**

- Developer-built sites that need to display custom post type data with a bespoke Elementor template

- Membership or course sites querying specific content types such as lessons or resources with custom criteria

- Portfolio sites pulling in custom post data and presenting it with a branded grid or masonry layout

[LIVE WIDGET LINK](https://theplusaddons.com/elementor-listing//#dynamic-listing-wgts?utm_source=tpae&utm_medium=docs&utm_campaign=text)

> *Note: The Custom Query option is only for advanced users, comfortable writing custom PHP code.*

To do this, follow the steps –

1. First, write your custom query.

2. After that, add the Dynamic Listing widget to the page.

3. Then select **Custom Query** from the **Post Listing Types** dropdown.

4. In the **Query ID** field, add your custom query ID.

5. Then select **Custom Skin** from the **Style** section and select your template from the **Select a template** dropdown. To add category-based filtering to this custom post layout, see [How to Add Filters to Elementor Custom Post Loop Skin?](https://theplusaddons.com/docs/add-filters-to-elementor-custom-post-loop-skin/)

Turn on the **Multiple Loops** toggle to use multiple layout designs together for your listing. You can use up to 5 templates together.

> *Note: In order to use Multiple Loops, you have to create separate custom templates for each loop template.*

6. Then select the appropriate layout type from the **Layout** dropdown.

> *Note: For using Masonry and Metro layout, you have to design your templates accordingly.*

7. If you are using multiple loops, arrange the templates in reverse or random order from the **Template Order** dropdown.

Your posts now display based on your custom query using your chosen design. To display custom post types in a grid with sortable category filters without writing custom PHP, see [How to Add a Category Wise Filter in Custom Post Grid Layout in Elementor?](https://theplusaddons.com/docs/add-category-wise-filter-in-custom-post-grid-layout-in-elementor/)

Also, read [How to Show Blog Posts Based on Custom Query in Elementor](https://theplusaddons.com/docs/show-blog-posts-based-on-custom-query-in-elementor/).

## Frequently Asked Questions

**Q: What should I do if my custom query isn't displaying posts in Elementor?**
A: If your custom query isn't showing posts, double-check your Query ID in the Dynamic Listing widget. Ensure that the custom query you wrote is correctly formatted and compatible with the widget. Remember, the Custom Query option is intended for advanced users familiar with PHP code, so any syntax errors could prevent posts from appearing.

**Q: What layout types work best for custom loops in Elementor?**
A: When creating custom loops, you can select from various layout types in the Layout dropdown. For Masonry and Metro layouts, ensure your templates are designed accordingly to fit the layout style. Choosing the right layout enhances the visual appeal and user experience of your content.

**Q: How do I ensure my custom loop skin looks good on mobile devices?**
A: To ensure your custom loop skin is mobile-friendly, test your templates on different screen sizes after creating them. The Plus Addons for Elementor allows for responsive design adjustments, so make sure to optimize your templates for mobile viewing to enhance accessibility and user engagement.
