wp_title help
-
Hi,
I am new to WordPress and PHP but have a lot of experience with ASP. I seemed to be stuck on the simplest thing but can’t see what I am doing wrong.
I am trying to change the layout based on the page that is being displayed. For example I created “About” page through WordPress Admin Pannel and now am trying to get the following code to work. For some (unknown to me) reason the code does not like the condition in my if statement.
<?php
$pagetitle = wp_title(‘ ‘, false);
if ($pagetitle == “About”) :
?>…code…
<?php endif; ?>
Please help.
Thanks.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘wp_title help’ is closed to new replies.