Need help with conditional statement in page.php
-
I want to display the page name on pages other than the Home page. As a beginning test with page.php, I put this code in place of the line that displays the page name. This code is supposed to display a string of x’s on the Home page only. It doesn’t display the x’s on any page. I’m new to php syntax.
<?php if (is_home()) { ?>
xxxxxxxxxxxxxxxxxx
<?php } ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Need help with conditional statement in page.php’ is closed to new replies.