WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
Code for displaying widget on child pages only (1 post)

  1. whoaloic
    Member
    Posted 6 months ago #

    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/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.