If you don’t specify the order and orderby arguments with your query, the results will be ordered ascending by date, no matter what order you put the pages in with post__in. If you have an order in mind that isn’t covered by one of the regular orderby arguments, you’ll have to define a metavalue on the pages to store the desired order.
Related Posts:
- Page template query with WP_Query
- How to display page content in a page template?
- Does WordPress generate an automatic page for post formats?
- Single page theme that uses pages for the content
- Trying to list out child pages with WP_Query
- Order by menu structure
- Targeting specific pages in the loop
- What are the differences between “Latest Posts” and “Static Page”?
- WP_Query not retrieving by random order under parent
- Set if condition with wp_nav_menu
- Set order of returned items in the WP_Query() class/function
- Search pages that are a child of the current page
- How to display summary content from a Page (Not a Post) on another page
- Serve specific “template” page at any URL that ends in its slug
- Display custom tags on pages that have a specific page parent
- Is there a reason why Pages are not publicly_queryable?
- Why post__not_in is ignored?
- Exclude parent with child pages from WP_Query
- Create a loop on my pages with new “WP_Query”
- All blog data on a page using custom query gives 404 for page 2 and onward
- When listing child pages run out of memory
- WP_Query with multiple orderby NOT working with ASC and DESC, what’s wrong?
- Display specific page (that is child) content on parent page
- Get query results with a page title
- How to get current page nearest parent id?
- How to get main menu only with wp_nav_menu
- Unable to paginate a custom page query
- How to create single page site in WordPress
- Determine if ID is page or post and query the ID
- How to query for a page, get data, then query for child pages of that page
- Get list of all Grandchild Pages
- Custom query does not find pages
- How to get pages of parent (non-recursive)?
- WP Query and multiple pages
- How to use custom page for all posts with custom url, call another directory?
- display the children of the post using the current page as the main parent
- pages shortcode filtering by category
- How to create page that lists tags by initial letter?
- Get a page ancestor from a most viewed list
- How can I use a specific wordpress page template if certain words are used in page title [closed]
- Category Archive not working for pages
- Retrieving category pages from subcategory returns empty sets
- Issue in If else condition [closed]
- Show parent’s child and also child’s, child on a page?
- get contents and permalink from a specified page
- Hierarchical List Pages as a table
- Get next post when using pagination with WP_Query?
- WordPress pagination returns the same posts
- How to write short code with if else to get page_id?
- Rewrite URL custom search query
- Paginate_Links page 2 doesn’t work
- WP_Query order by multiple meta keys & fields
- WP_Query and polylang issue
- Given a WP_Query, how can I get a list of tags?
- How to detect if a function has been fired on any page so scripts/styles can be loaded conditionally
- Why execute the_post()?
- Create A Loop With A Variable Number of Posts For Each Bootstrap Row?
- Set Transient does nothing
- Get amount of CPT with a certain custom field value
- How do I make a meta_query OR relation work? [closed]
- How to use wp_query to post count by search term > group post count by date > convert to json. (ex. result 12-21-2020 – 343)
- Woocommerce – Changing the order of the upsell products [closed]
- slow query – Search for Media Gallery
- How to order WP_Query to group results?
- get term id from term name
- Use title of post as argument for query
- How do I add an item to the WP admin menu?
- Multiple meta query from array
- Filter subpages in while loop from WP Query object
- Unrelated post showing in WP_Query
- Custom meta_query order for Elementor based on post meta key [closed]
- show related articles in single.php template
- WP_Query to Retrieve Posts from WooCommerce Products that are Only in Catalog
- Search Filter With Custom Taxonomy and Custom Fields : How do I handle it via plugin?
- query_posts based on a meta_key
- Query with two posttypes and two different meta_keys
- Show portfolio items in template – how?
- Problem with WordPress 4.0 and $wp_query
- Add category and user name to recently updated post list
- How to get from sql query page id and retrieve it url and title
- Main loop querying current template’s info only in custom category archive pages, not my posts
- Using ‘meta_query’ with the ‘pre_get_posts()’ hook disables searching for post titles
- Woocommerce set loop_shop_columns to be 3 in the main shop page loop only and 4 otherwise
- Get posts using multiple values from ACF checkbox as meta query wordpress
- Display post format post in the sidebar
- How to save the results of a query as a php file for an autocomplete search bar
- Why ignore_sticky_posts argument is in sticky post query?
- WP Query returning all posts when Meta_query is null
- Is there another way to retrieve a post_id from post_meta other than a SQL query?
- Complicated `orderby` based on text in custom field
- meta_query post_date not returning results
- WP Query: orderby with one meta key, but multiple values
- Filtering custom post type list in admin by custom meta key/value
- Inherit args from the main wp_query or wp_comment_query to my custom query
- Filter on one post type with taxonimy and get other post type
- Multiple WP_Query with pagination shows Page/2 content on the remaining pages
- filter the custom post type using wp ajax request
- WP_Query returns wrong post when searching by title?
- WP Query to display events and posts at the same page
- get posts returns results but wp_query does not