WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
How to show widget if page is a child page (of any page) (1 post)

  1. CarolineElisa
    Member
    Posted 1 year ago #

    I tried the following, but the widget still shows on top level pages:

    global $post; return ($post->post_parent != 0);

    Thanks!
    Caroline

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.