Exclude Widget from showing on certain templates – Conditional Tags Syntax
-
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’ )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’, ‘mytemplate2.php’ ) )Doesn’t work.
Where/what is my mistake?Thanks!
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Exclude Widget from showing on certain templates – Conditional Tags Syntax’ is closed to new replies.