if else code
-
Hi all what is the correct syntax for this if else clause, I think I have the syntax slightly wrong. When the category is French I want it to show nothing and when it is other categories I want it to show the string “Learn About”. Thank you
`<h1 class=”pagetitle”>
<?php } if (is_category(‘French’)) { ?>
<?php } else { ?>
Learn about <?php printf(__(‘%s’, ‘kubrick’), single_cat_title(”, false)); ?></h1>
`
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘if else code’ is closed to new replies.