How to display content sub pages from another parent page
Here’s my site, http://scoobydooobyd00.com/
I have two main pages (Videos and Video-Tutorial) I want the videos page to list the title and content from the sub pages to the parent Video-Tutorial.
All of my videos are posted in their own sub page (Permalink = http://scoobydooobyd00.com/video-tutorial/getting-started-with-jquery/ and basically on the the Videos page I want to select the title, and content from the videos page in a loop.
This is the code that I have right now, but it just select the content from the Video-Tutorial’s page.
<?php $my_query = new WP_Query('page_id=33/child'); ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <h2 class="header center"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> <?php the_content(); ?> <?php endwhile; ?>
- The topic ‘How to display content sub pages from another parent page’ is closed to new replies.