GeneralPost & PageType & StatusPasswordAuthorSearchPaginationOrderTaxonomyDateCustom FieldsPermissionsCacheOverviewUse this tool to create custom code for WordPress Query with WP_Query class.UsageFill in the user-friendly form.Click the “Update Code” button.Copy the code to your project.Or save it as a snippet and share with the community.ExamplesIf you are still learning how to use this tool, check out the following examples:Posts by specific author nameRandom QuoteProducts up to 100$Most popular Posts ordered by Comment CountQuery Variable Name The variable used in the code.Show The Loop YesNo Show The Loop.Post ID Display post by ID.Post Name Display post by slugs.Page ID Display page by ID.Page Name Display page by slugs.Parent Display child-pages of a parent-page id.Post Type Display posts by post type.Post Status Display posts by post status.Has Password Choose...YesNo Display password protected posts.Post Password Display posts with a particular password.Author ID Display posts by author IDAuthor Name Display posts by author 'user_nicename'.Search Keyword Display post by keywords.Use Pagination Choose..Yes - DefaultNo Show all posts or use pagination.Paged Show posts in page number X.Posts per page Number of post to show per page.Posts per archive page Number of post to show per archive page.Sticky Post Choose...YesNo Show or ignore sticky posts.Offset Number of post to displace or pass over.Order Choose..ASCDESC - Default Ascending or Descending order.Order by Choose..NoneRandomIDTitleSlugDate - DefaultModified DateParent IDMenu OrderComment Count Sort retrieved posts by.Taxonomy Query No save snippets... Select from your saved WP_Tax_Query snippets.Date Query No save snippets... Select from your saved WP_Date_Query snippets.Meta Query No save snippets... Select from your saved WP_Meta_Query snippets.User Permission Display posts if user has the appropriate capability.Cache Results Choose...YesNo Display posts with/without caching post information.Cache Post Meta Choose...YesNo Display posts with/without caching post meta information.Cache Post Term Choose...YesNo Display posts with/without caching post term information. Update Code Save Snippet