Code for displaying widget on child pages only
I use page list plugin to display siblings pages link in widgets only on child pages.
I use this condition in the widget logic area :
global $post; return (($post->post_parent==”20″)|| ($post->post_parent==”130″));
I’d like to know if it’s correct or does another code exist?
- The topic ‘Code for displaying widget on child pages only’ is closed to new replies.