Sorry, but I can’t seem to find this answer. Is there any way to return the name of the current page’s parent?
I use the following code to control the ‘active’ tabs in my navigation:
if (is_page(‘products’)) echo ‘class=”active”‘
I also have:
How can I get WP to return ‘products’ when I am on products/cds for example?
- The topic ‘get_parent_page ??’ is closed to new replies.