WordPress.org

Ready to get started?Download WordPress

Forums

Linking Subpages To Parent Page (1 post)

  1. altern8tif
    Member
    Posted 6 years ago #

    I am using WordPress as a CMS for a particular website. And I have two levels of pages: Parent & Children. How do I make it so that when I click on a link for a parent page which has children, it will bring me to the first subpage?

    Maybe an example would be helpful:

    Vegetables (Page)
    Fruits (Page)
    Oranges (Subpage)
    Apples (Subpage)
    Pears (Subpage)

    I do not want to put any content on the Fruits page. Instead I want to make it such that when I click the Fruits page, it will send me to the Oranges subpage. What conditional tags do I require for me to do that?

Topic Closed

This topic has been closed to new replies.

About this Topic