• Resolved Sumukha

    (@sumukha)


    Hello,
    maybe someone can give me a hint:
    I want to use certain widgets on certain templates using conditional tags.
    The conditional tag for the widget is
    is_page_template( ‘mytemplate1.php’ )
    or for excluding
    ! is_page_template( ‘mytemplate1.php’ )

    Now, I need to hide another widget on this and two other templates and thought the syntax would be
    ! is_page_template( array( ‘mytemplate1.php’, ‘mytemplate2.php’, ‘mytemplate3.php’ ) )

    Doesn’t work.
    Where/what is my mistake?

    Thanks!

    http://ww.wp.xz.cn/plugins/widget-logic/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Conditional tags based on templates?’ is closed to new replies.