Ondersteuning » Code oplossingen gezocht » Inhoud child pages tonen in tabber op parent page

  • Moderator Remkus de Vries

    (@defries)


    Sleutelbeheer WordPress NL

    Iemand enig idee hoe ik dit op kan lossen?

    I was wondering if anyone knew a solution for my problem. I have modified a page template to display the tabber instead of the homepage. Instead of displaying the categories and their latest post – like the tabber does out of the box – I would like for it to display to child pages of the parent page (which uses the page template).

    this is what I’ve got so far, but it’s only displaying the posts instead of the child pages of a particular parent page:

    PHP Code:

    <div class="hptabber">
                    <div class="hptabberblock">
                        <div class="tabber">
                            <?php query_posts('post_parent=.$post->ID&posts_per_page=6'); ?>
    
                            <?php while(have_posts()) : the_post(); ?>
                            <div class="tabbertab">
    
                                <h2><?php the_title(); ?></h2>
    
                                <?php the_content (); ?>
    
                                <div class="clear"></div>
    
                            </div>
                            <?php endwhile; ?>
    
                        </div>
    
                    </div>
                </div>

    Het gewenste effect is hier te zien: http://www.studiopress.com/demo/news.html

2 reacties aan het bekijken - 1 tot 2 (van in totaal 2)
2 reacties aan het bekijken - 1 tot 2 (van in totaal 2)
  • Het onderwerp ‘Inhoud child pages tonen in tabber op parent page’ is gesloten voor nieuwe reacties.