If conditions
-
Dear php gurus,
HELP,
I’m trying to use an if condition to display different text depending on whether it’s the regular homepage or the spanish version of the homepage
here’s what I have so far:<?php if(is_page(‘spanish-home’)) {?>
<?php echo”English“;?> <?php } ?> <?php else {?> <?php echo “Español“;?> <?php } ?>I get error messages when I run the code. I’m not experienced in php to diagnose the problem.
I would be eternally grateful if someone helps me out. Thanks
-Christian
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘If conditions’ is closed to new replies.