Set sidebar content for page and it's subpages (1 post)

  1. abelcreative
    Posted 8 years ago #

    I'm using this in my sidebar:

    if (is_page('about')) {
                 // our about page.
                 echo "<h1>title</h1>
                 <ol><li>Content here</li></ol>";

    I'm wondering if there's a way to write this so that that block of content appears on the about page and any child page of the about (i.e. pages with About marked as a page parent)

Topic Closed

This topic has been closed to new replies.

About this Topic