WordPress.org

Support

Support » Plugins and Hacks » Widget Logic » Code for displaying widget on child pages only

Code for displaying widget on child pages only

  • Hello,
    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?

    Regards.

    http://wordpress.org/plugins/widget-logic/

  • The topic ‘Code for displaying widget on child pages only’ is closed to new replies.
Skip to toolbar