if is in a category show this else dysplay other
-
I have a problem with this loop. I think it’s not closed on the line number 13
one of you knows how to close it properly?<?php if ( in_category('CATEGORY NAME') ) { echo"HTML CODE";{ ?> <?php if (get_post_meta($post->ID, 'KEY', true) ) { ?> <!-- html code --> <?php } else { ?> <!-- html code --> <?php } elseif ( in_category('CATEGORY NAME 2') ) { } else { } ?>
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘if is in a category show this else dysplay other’ is closed to new replies.