Cannot Detect if It Is in a Sub Page
-
Hi,
Since yesterday, the php query to find sub-pages has started not working. It’s been fine before.
if(get_the_title($post->post_parent) != the_title(‘ ‘ , ‘ ‘,false)) { echo ‘this is a sub-page’;}
This echoes in everywhere including parent pages.
I’m going to disable all the plugins first, but if you have any ideas which might help, it would be greatly appreciated.
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Cannot Detect if It Is in a Sub Page’ is closed to new replies.