WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
Collection of working examples (4 posts)

  1. thomasjojo
    Member
    Posted 1 year ago #

    Im looking for more examples of logic scripts,

    What Im trying to do is to have a widget on a Parent Page, and ALL the subpages below.

    THis example does not work:

    is_page('pagename') || ($post->post_parent=="the_page_ID#")

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

  2. Ov3rfly
    Member
    Posted 1 year ago #

  3. thomasjojo
    Member
    Posted 1 year ago #

    Sure, I know.

    I hoped for an extended and better collection ..

  4. Ov3rfly
    Member
    Posted 1 year ago #

    A working version of your parent/subpage question can be found in these examples...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic