WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
Add two conditionals Doesn't work (2 posts)

  1. jasi312
    Member
    Posted 2 years ago #

    The readme file shows a way to do this with || (OR) and && (AND) but it's not working. Any help would be very appreciated. I've tried:

    !is_tree(array(2356,1123,121,117,34,1164,1026,1119,2322)) || !is_single()

    (!is_tree(array(2356,1123,121,117,34,1164,1026,1119,2322)) || !is_single())

    global $post; return (!is_tree(array(2356,1123,121,117,34,1164,1026,1119,2322)) || !is_single());

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

  2. alanft
    Member
    Plugin Author

    Posted 2 years ago #

    if that's the is_tree function as shown in snippet 4 on

    http://codex.wordpress.org/Conditional_Tags

    it doesn't take an array as a parameter, which could be the source of your problem

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic