Forums

[resolved] How to parent page name (2 posts)

  1. jmsrie
    Member
    Posted 1 year ago #

    I have a problem on getting the name of the parent page. here's my page structure

    |_ main
      |_ sub-main1 <-- I'm here!, how do i get the above page name? the (main)
      |_ sub-main2

    here's how I check to see the page name.

    if( is_page('sub-main1') OR is_page('main') ){ ... }

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic