In my blog, some category has hundreds titles, almost all the themes will show all the details in the category index. Which makes my category page become really huge, it looks like list the contents of several books just in page, I need change it to only list the titles.
Some themes use the only content/list loop for both main index and category list, those themes is useless for me, once you modify the category list, it also affects main index. I need the category list which is separate.
Those themes has the category.php matches my requirement. Here is the way how to modify it:
- Look for the code like
while ( have_posts() ) : the_post();
- Find the code in the loop like
get_template_part( 'content', get_post_format() );
and comment it
- Add the following code
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a><br />
- List can be added to the code
you can do some modifications, like change the <br /> to <li></li> pair, and put <ol> before the while loop as well as </ol> afterwards