You were being too specific/not passing the correct parameters into your wp_query
.
This should get you what you’re looking for:
<?php
$current_page_id = get_the_id();
$investor_content_query = new WP_Query( 'post_parent'=> $current_page_id ) );
if ( $investor_content_query->have_posts() ) {
while ( $investor_content_query->have_posts() ) {
$investor_content_query->the_post();
the_content();
}
}
wp_reset_postdata();
?>
Related Posts:
- Trying to list out child pages with WP_Query
- Create a loop on my pages with new “WP_Query”
- has_excerpt() not working inside wp_query
- How to split a post and intercalate elements from a loop
- Why does apply_filters behave different inside and outside a loop?
- Determine if ID is page or post and query the ID
- Custom query does not find 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
- Retrieving category pages from subcategory returns empty sets
- Issue in If else condition [closed]
- Can I force WP_Query to return no results?
- Page template query with WP_Query
- How to display page content in a page template?
- Multiple WP_Query loops with Pagination
- WP_Query vs get_posts
- WP_Query and next_posts_link
- Order posts by ID in the given order
- Too slow when using both ‘tax_query’ and ‘meta_query’ both in WP_Query
- Get array of posts from the current archive page loop
- How-to exclude terms from the main query the most performant way?
- Pagination with WP_Query is buggy – working for some pages, but not the others
- Get the number of posts from the current page results
- How can I save an array from a random post sequence for later use?
- Does WordPress generate an automatic page for post formats?
- In loop: posts have thumbnail AND other variables
- How to order category.php loop by ‘meta_value’?
- Add inline HTML to posts published within last 24hrs
- Move posts to top of WP_Query if in certain Taxonomy?
- Display different number of posts from one category on the different pages
- Pagination not working Search posts
- How to change a custom query into a standard loop?
- Injecting content with $wp_query->current_post restarts from zero on paged pages. How to inject content after X posts, regardless of pagination?
- Can certain (site-crashing) limitations on WP_Query in shortcode be overcome?
- Implementing an OR statement to wordpress wp_query
- Get List of all the Authors
- 2 loops on page – one with orderby rand second orderby date
- Create ONE callback for all page templates, post filter queries + paginated pages, triggering pagination via AJAX
- WP_Query loop within WP_Query loop
- Refine search results using WP_Query
- How to pass many ids in post__in?
- How to show subcategories using loop?
- Set order of returned items in the WP_Query() class/function
- Counter problem, infinite loop when post_per_page equals X
- Sub-loop / nested loops Best Practices
- Show Sticky Post at the top but do not show again in the loop?
- Any number in meta key (wp query)
- How do I run through a WordPress loop called from a filter function?
- How do I get the title of a category in a custom loop?
- Using the_post_thumbnail resets current loop item ID
- Out Of memory issue on post per page parameter
- Check if loop has any categories?
- WordPress query with items from more than one selfdefined taxonomy as `term` argument
- Get all fields inlcuding “ACF” (Advanced Custom Fields) columns in wp_query
- Why post__not_in is ignored?
- Change query from cat id to slug or name?
- Using Wp_Query without the loop?
- Issue with front page navigation after upgrading to 3.4
- Custom WP_Query id
- Assign custom parameter to each post in query
- Exclude recently updated post from custom WP_Query using multiple loops
- get_posts output always same post
- how can I get seperate the HTML in the_content(); output?
- difference between querying database and using the loop
- Stomping WP_Query in author archive to facilitate pagination with custom queries
- How does WP generate the default $query in WP_Query based on the URL?
- how to get category`s slug in WP_Query loop?
- Loop posts based on permalink term
- How to remove only the latest sticky post from the loop
- How I can repeat 2 HTML templates in a WordPress Query?
- Does putting queries within loops cause an issue on WordPress?
- Query Taxonomy By Page Title
- Function using get_posts() with tax_query not working when called from functions.php
- How to get current page nearest parent id?
- Unable to paginate a custom page query
- How to change the default post type over the loop?
- How to make the ‘request’ filter work?
- How do I stop the same post showing multiple times in a archive?
- Bootstrap grid while loop
- how to get custom attachment url?
- How can I use WP_Query to sort ‘event’ custom post type by date?
- Display posts side by side with custom query
- WP_Query & Duplicate entries
- WordPress For Loop Prints Unwanted Extra Paragraph Element
- Calling a function with WP_Query only ever brings the first result
- query_posts() doesn’t seem to be called in my page
- Some doubts about how the main query and the custom query works in this custom theme?
- Ordering Posts by parent category, name ascending
- Create multiple sections for all categories and then queries all the posts for each of those categories
- Load 3 posts in flexslider slide [closed]
- Multiple wp_query loops showing first 5 posts on all pages instead of older posts[Resolved]
- Next / previous posts link doesn’t show up with Posts 2 Posts
- How to exclude posts ordered by comment_count from subsequent wordpress loops using WP_Query?
- $query conflicting with other queries in the same page
- WordPress Post Looping? [duplicate]
- Carousel Loop only duplicating
- How to show featured post first, then separate loop for other posts
- Woocommerce set loop_shop_columns to be 3 in the main shop page loop only and 4 otherwise
- Prevent WordPress loop from displaying similar post titles