Return to Snippet

Revision: 23482
at February 8, 2010 12:14 by hstothard


Initial Code
<?php $category = get_the_category();?>

<?php if($category[0]->cat_name == 'Title1'): ?>
     <h2>Title 1</h2>
<?php else : ?>
     <h2>Title 2</h2>
<?php endif ?>

Initial URL

                                

Initial Description

                                

Initial Title
Wordpress - If is string

Initial Tags
wordpress

Initial Language
PHP