Need Help?

Here are some good places you cant start.

Whats New?

Get updated about all the good stuff!

Scroll Text Animation - Featured Blog
Post Carousel Slider - Featured Blog
Person Schema - Featured Blog

Advanced Post Query

Introduction:
In this article, you will learn about various options and settings available in the Post Query Section for any Post Widget or Loop Widget in the widget library for example: Post Grid, Post Carouse, Post list, etc. 

1. Post Source

Allows us to select the source for your posts output. These are the options available:

post source select

2. Post Types

You can choose the relevant post type you want to display in your post widget. For example: posts, pages, products or any custom post post type. You can select more than one post type since this is a multi select field.

post types

3. Include By

You can choose the relevant post type you want to display in your post widget. For example: posts, pages, products or any custom post post type.

include by

4. Include By Term

Show posts related to a specific taxonomy. For example assigned to a category.

Screen Shot 2021 08 10 at 5.18.29 PM e1628677993921

5. Exclude By

Choose specific posts that you would like to exclude from your selection by adding rules.

Screen Shot 2021 08 10 at 5.28.15 PM

6. Post Status

This setting allows you to select the post status for post selection. You can select by published, pending review, private, future, draft or inherit.

 

post status

7. Max Posts

Set the number of maximum posts to display. If left empty will show up to 100 posts.

max posts

8. Order By

This setting determines the order of the posts. Post ID, Date, Title, Slug, Author, Last Modified, Number Of Comments, Random, Unsorted, Menu Order, Parent Post, Preserve Posts In Order, Custom Field Value, Custom Field Value (numeric)

 

You can also determine the Order By Direction in a descending or ascending order.

order by

9. Query ID

Give your Query a unique ID to be able and filter it in the server side using add_filter() function. 

This is how you do it: 


				
					//modify the arguments here. 
//widget data is an array with all widget settings
function modifyMyQuery($args, $widgetData){

	
	return($args);
}

add_filter("my_query_additions", "modifyMyQuery",10,2);

				
			

10. Show Query Debug

This advanced mode will show the post query selection for debugging purposes. Don’t forget to turn it off before page release.

Download is just a click away

Get instant access to tons of Elementor goodies, completely FREE!

Hurray!

You got FREE access to the worlds leading widgets for Elementor page builder!