Multiple conditionals without using echo?
-
In page.php, I need a conditional that says, “If it’s the About page, display this text, if it’s the Contact page display this text, and for all other pages, display this text”.
I’ve seen examples of multiple conditionals on the Codex page, but they all use an echo. I have PHP functions within my text that won’t execute within the echo. Can anyone demonstrate how to make this work?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Multiple conditionals without using echo?’ is closed to new replies.