Parent and child pages (2 posts)

  1. davidvil
    Posted 5 years ago #

    I have the next code:
    <div class="section">
    <h2>">The Right Curriculum</h2>
    <div class="section_inner">

    <div class="feature">" class="schedule">Sample Curriculum</div>
    The "The Right Curriculum" is the parent and the five others are the children.
    I want to make it dynamic and making a loop condition that show the four first children if the current page is the parent.
    How can i make it?

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    See http://codex.wordpress.org/Template_Tags/wp_list_pages#List_Sub-Pages

    And when posting code, please make sure that it's inside backticks (`) to stop it being parsed by the forum software.

Topic Closed

This topic has been closed to new replies.

About this Topic