Assuming that, by “HOME_ID”, you are referring to the static Page used to display the Site Front Page, then you want to use get_option( 'front_page' )
to get the ID for this page:
<?php
$menu_wp_query_args = array(
'post_type' => 'page',
'post_parent' => get_option( 'front_page' ),
'orderby' => 'menu_order'
);
$new_wp_query = new WP_Query( $new_wp_query_args );
?>
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
- 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
- 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
- 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?
- Can I force WP_Query to return no results?
- paginate_links() adds empty href to first page and previous link
- Get array of posts from the current archive page loop
- In loop: posts have thumbnail AND other variables
- How to grab metabox value in wp_query meta_query key
- Add and in the header while looping over custom query in page template
- Pagination not working on static page
- Can certain (site-crashing) limitations on WP_Query in shortcode be overcome?
- Get array of current post term ID’s
- Implementing an OR statement to wordpress wp_query
- Minimize database queries to user tables?
- How to make Meta Query case sensitive?
- Populate tax_query terms parameter with post term
- Orderby the sum of several numeric custom meta fields
- wp_query ‘s’, search filter with pagination is not working
- How to display an other custom post type in a different custom post type’s archive?
- Replacing raw database query to WP_Query
- WP CLI can’t delete plugin related table
- Inserting HTML to close and open divs in WP_Query loops
- Change query from cat id to slug or name?
- Query only the posts with a post format of “audio”
- Display Current Post’s Position in Custom Taxonomy
- Using Wp_Query without the loop?
- WP Query with multiple tags by get the tags
- Orderby custom meta returns random order
- Include latest author posts with pagination in single template?
- How to querry for an item that saved in an array?
- get_post() is not returning correct value
- How to print term name inside wp post loop
- CPT category post/content is not showing on my page, Please review my coede
- WP_Query with page_ids in arguments without a result
- Prioritising and Ordering Posts By Category Name Using A Custom Loop
- Filter products on category AND tag
- meta_query – check for multiple meta values in key which holds an array of values
- How to sort wordpress posts already selected by WP_QUERY
- Searching for a specific month in a metadata saved as Timestamp (Wp_Query)
- Set “editor” role to existing user
- how to get wp_query posts only first letter of alphabet A?
- Custom Post Type WP_Query with filters and search
- Query by meta value (add a dropdown of all values)
- Calling a function with WP_Query only ever brings the first result
- get last child post by wp_query
- How To Query All Attachment Images Found In Post Galleries
- WordPress meta_query not working
- Create multiple sections for all categories and then queries all the posts for each of those categories
- $wp_query when new WP_Query
- Unable to pass variable
- WP Query get posts by specific author IDs if one of several logged in authors
- How to display posts from a specific term first then another posts from another terms using tax_query
- WP Query – Show custom posts only if user contain some user meta
- How do I subquery with custom meta fields?