• Resolved jmsrie

    (@jmsrie)


    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') ){ ... }

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘How to parent page name’ is closed to new replies.