WordPress.org

Forums

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

  1. whoaloic
    Member
    Posted 1 year 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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.