• Any idea how I can conver this to pull the child pages of a specific parent to any page?

    this works great with categories and posts..

    <ul>
                   <?php $temp_query = $wp_query; ?>
    
    					<?php query_posts("category_name='featured-articles'&showposts=3"); ?>
    
    					<?php while (have_posts()) : the_post(); ?>
    
      						<li class="post" id="post-<?php the_ID(); ?>">
                            	<div class="news">
                        			<h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
    								<?php the_excerpt(); ?>
    
                                    <p><a href="<?php the_permalink(); ?>">MORE ></a></p>
                        		</div>
    
    						</li>
    
    					<?php endwhile; ?>
                    	</ul>

    Thanks for any advice!

Viewing 1 replies (of 1 total)
  • Thread Starter kmaier

    (@kmaier)

    figured out a way incase any one needs it.

    exchange above query_posts with this and change your parent #
    <?php query_posts(“post_type=page&post_parent=245&showposts=3&order=asc”); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘pull child pages of a specific parent to say the home page’ is closed to new replies.