WordPress.org

Ready to get started?Download WordPress

Forums

Can't get child pages to show up on parent when using functions.php (2 posts)

  1. marenm
    Member
    Posted 3 years ago #

    Hi there,

    I am attempting to display subpages on parent pages in my (thematic-based) child theme.
    I have used the standard code before (illustrated here ), inserting it directly into a new page.php template.
    However, now I'd like to insert the code using the functions.php file. However, it displays ALL pages instead of just SUBpages.

    Here is the code in my functions.php file:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    If anyone sees what's wrong here, I'd really appreciate it!!

  2. marenm
    Member
    Posted 3 years ago #

    Sorry about that, I've never used pastebin before.
    Here is a link to the code (is this how it should be posted??)

Topic Closed

This topic has been closed to new replies.

About this Topic