Can you see the flaw in my IF-THEN statement?
-
Trying to get the sidebar not to show up on a page titled, “Workshops”.
Here’s the code I’m using:<?php if ( the_title() !="Workshops") {get_sidebar();} ?>
No clue why it’s not working. It displays the word “Workshop” AND the sidebar.
Ideas?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Can you see the flaw in my IF-THEN statement?’ is closed to new replies.