• I am trying to do something that seems fairly simple but I can’t find a solution.

    I am using wordpress as a CMS. I want the top of each page that wordpress generates to display the name of parent page on one line and then the name of the child page on a new line using a different header(unless the page is its own parent)

    <h1>Parent Page Name</h1>
    <h2>Child Page Name</h2>

    the_title()function doesn’t work, because I need a way to first check to see if the current page is its own parent. If it is, it will display at the top as the <h1>, otherwise it should find the parent page name, display it on the first line and then put the current(child) page name on the second line.

    Please help me

Viewing 1 replies (of 1 total)
  • Cathy Tibbles

    (@multitalentedmommy)

    Hi Dtrain, that sounds very similar to the breadcrumb plugin. Except instead of displaying the horizontal ‘this-is-where-you-are’ menu, you want the vertical version. Maybe you could edit the css of the breadcrumb plugin? At least the arguments are there for ya to start with.

    Good luck!

Viewing 1 replies (of 1 total)
  • The topic ‘Displaying Title of Parent and Child Page’ is closed to new replies.