WordPress.org

Support

Support » Plugins and Hacks » Linking Subpages To Parent Page

Linking Subpages To Parent Page

  • 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?

  • The topic ‘Linking Subpages To Parent Page’ is closed to new replies.
Skip to toolbar