2011-08-31, 17:35:06
By default get_parent() echoes the parent but does not return it.
The correct way would be:
(BTW I use 0 instead of false, it's the same)
The correct way would be:
Code:
<?php if (get_parent(false)=='slug'){ ?>