Could someone point me in the right direction please?
I am trying to get the content of 4 particular pages on the home page by mentioning their ID’s:
<div class="getPages"> <?php $home_page_post_id = 674; $home_page_post = get_post( $home_page_post_id, ARRAY_A ); $content_home = $home_page_post['post_content']; echo $content_home; ?> </div>
The div is multiplied 4 times but I actually need to get all the child pages of the About page and not make the same div 4 times.
- The topic ‘Get the content of child pages on the home page’ is closed to new replies.