Get the content of child pages on the home page
-
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.
Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Get the content of child pages on the home page’ is closed to new replies.