sort_column is not a valid parameter for WP_Query. You want orderby. sort_order is also not a valid parameter. It should just be order.
$all_wp_pages = $my_wp_query->query(
array(
'post_type' => 'page',
'order' => 'ASC',
'orderby' => 'menu_order'
)
);
Related Posts:
- List the 5 most recent child pages
- Search pages that are a child of the current page
- Exclude parent with child pages from WP_Query
- When listing child pages run out of memory
- Get list of all Grandchild Pages
- Get a page ancestor from a most viewed list
- wp query to get child pages of current page
- Page template query with WP_Query
- How to display page content in a page template?
- A check for if is parent page, if has children, if has grandchildren
- Exclude Child Posts from WP_Query
- Does WordPress generate an automatic page for post formats?
- Only allow new subpages to be created
- 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
- Pagination of a WP_Query Loop in a child-page page template
- Need wp_query to return all children and grandchildren
- How to get all child pages in their parent 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?
- Better wordpress attachment query than this
- Get Child Page IDs by Parent ID
- How to Create a Random List of Child Pages
- complex get_posts() query to select child pages
- 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
- How to Display Shortcode in the correct location, currently displaying before content after Page Title?
- WP_Query returns different results from get_posts() [closed]
- WPQuery calling specific posts problem
- WP_Query with multiple orderby NOT working with ASC and DESC, what’s wrong?
- Display specific page (that is child) content on parent page
- Keep page hierarchy in wp_list_pages, even if on a child or grandchild
- Get query results with a page title
- wp-query, pull children of parent page
- 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
- Don’t repeat posts from children in parent taxonomy 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
- Custom query does not find pages
- How to get pages of parent (non-recursive)?
- WP Query and multiple pages
- How to make a query returning pages from multiple parents
- How can I build a query that returns all attachments of a page and it’s children pages?
- Search anything from a Child and Sub-Pages of their Parent page
- How to use custom page for all posts with custom url, call another directory?
- Show child by slug, while knowing parent ID
- Child and Parent Pages list of sub pages
- display the children of the post using the current page as the main parent
- pages shortcode filtering by category
- Paginate nested query of child posts
- WP_Query doesn’t works inside loop
- How to create page that lists tags by initial letter?
- WP_Query doesn’t return some child pages even though the database shows them
- 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?
- List of child pages fetch next results at link click
- get contents and permalink from a specified page
- Hierarchical List Pages as a table
- Get Child Custom Post Content on Single.php?
- Get next post when using pagination with WP_Query?
- How to get child pages and add unique class only to active page?
- WordPress pagination returns the same posts
- query only direct child and sub-terms of a current term archive
- How to write short code with if else to get page_id?
- Rewrite URL custom search query
- Paginate_Links page 2 doesn’t work
- get_posts with multiple categories
- Perform query with meta_value date
- Compare two meta-fields in a wp_query (where meta-field-A is larger than meta-field-B)
- Different Results with query(‘s=computer’) vs get_posts(‘s=computer’)?
- Search – Ajax – Alter Query Parameters with Pagination
- WP Query with multiple categories – passing an array works?
- WP_Query do not load specifed number of post
- How to display user order by role
- Get all fields inlcuding “ACF” (Advanced Custom Fields) columns in wp_query
- how to use pre_gets_posts to exclude one queried ID from homepage loop
- date_query in pre_get_posts out of memory
- How to add sort order to incremented and paginated category loop
- How to set parameters for search loop?
- Which is from this queries is more faster
- Trying to change category of wp_query
- Query to Exclude Child Pages from Custom Post Type Archive
- Paginated Author.php not using Author.php template
- paginate_links() with Custom Taxonomy
- Output ACF field dynamicaly within a taxonomy loop [closed]
- Why am I getting no results of a query placed after another query?