Support » Themes and Templates » Show Category posts as bulleted title list

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael


    Forum Moderator

    to start with, make a copy af index.php and save it as category.php;

    edit the new category.php, and change this line:

    get_template_part('inc', 'indexloop' ) ;


    get_template_part('inc', 'categoryloop' ) ;

    make a copy of inc-indexloop.php and save it as inc-categoryloop.php;

    change this section:

    <?php while ( have_posts() ) : the_post(); ?>
    		<?php get_template_part( 'content', get_post_format() ); ?>
    	<?php endwhile; ?>

    for example to:

    <ul class="category-posts">	<?php while ( have_posts() ) : the_post(); ?>
      <header class="entry-header">
        <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'wplook' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
          <?php the_title(); ?>
    	<?php endwhile; ?>  </ul>

    (details depend on what you want to output – the example only outputs an unordered list with the linked post title)


    Thanks for the details, I edited it and its not showing the post title:

    I used this code to the theme Twenty Twelve with WP 3.5.1

    It works but 2 issues:
    how do I show more than 10 posts?
    how do I show the navigation pages?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show Category posts as bulleted title list’ is closed to new replies.