Categories to show different in tag.php
-
Hello I got 2 categories I want to show different on the tag template. the first category should only display the post excerpts and in the other one I want to show to full.
I can’t seem to work it out in the right way, this is what I came up with:
if (have_posts()) : if ( is_category('1') ) : while (have_posts()) : the_post() // Excerpts shows up here endwhile; } elseif ( is_category('2') ) : while (have_posts()) : the_post(); // Full posts shows up here endwhile; endif; endif;
I can see there’s something wrong but where, I could really use some help thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Categories to show different in tag.php’ is closed to new replies.