WordPress.org

Ready to get started?Download WordPress

Forums

Show Category posts as bulleted title list (4 posts)

  1. rameesareno
    Member
    Posted 1 year ago #

    Sample site:
    http://happymindsgroup.com/category/love/

    Using wplook.

    I am going to restructure my site for categories to be displayed in bulleted list.

    How and what do I edit the php files to remove excerpt
    and add

      ..
    • Thank you.

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    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' ) ;

    to:

    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(); ?>
    <li>
      <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(); ?>
          </a></h1>
      </header>
    </li>
    	<?php endwhile; ?>  </ul>

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

  3. rameesareno
    Member
    Posted 1 year ago #

    Hi,

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

    http://happymindsgroup.com/category/love/

  4. Max121
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic