Support » Fixing WordPress » List headlines in the category

  • Hi

    Is this possible in WordPress? I want to show only headlines in the category XY

    For instance I call my Category BOXING and publish many posts in that category but I can only show an excerpt of the post with more } tag or show whole post, but I want only show the headlines like so

    * Mike Tyson has beaten his ear
    * Names of world greatest Boxer
    * The comeback of Frank Shamrock

    I want to list the headlines like above and I’m using the default theme with widgets pages and categories

Viewing 4 replies - 1 through 4 (of 4 total)
  • Are you talking about posts on your blog main page where you have posts from many categories displayed or are you talking about when a category archive showing all the posts from the Boxing category are displayed?

    If on your blog homepage you want:
    Post for Boxing category to display just the title
    Post for Baseball category to display the title and the content

    or if when you display a category archive for Boxing just show the title but not the content?

    Hi Michale

    no not Mainpage
    I want to show in 2 Categories for instance Category Cat=44 and Cat=55 not whole post only the headlines
    in Category cat 44 I have many posts they look so
    text text text text

    text2 text 2text t2ext 2

    but I want only list the headlines in the category 44 and 55 like below


    when user click onthis headline then they can read the entire post

    Using the WordPress Default Theme for example:

    1. Copy wp-content/themes/default/archive.php to wp-content/themes/default/category-44.php
    2. Now edit category-44.php and delete this code:

    <div class="entry">
    <?php the_content() ?>

    To understand why the category-xx.php works review Template Hierarchy and Category Templates.

    Stepping Into Template Tags
    Stepping Into Templates

    hi Michael

    that has worked great, thank you. I have a small problem with <ul> <li></li></ul> in the category-44
    I want to list the headlines like here in the news section but my default theme category-44 lists the headlines so

    date time day
    .big blank space
    date time day

    how can I delete the big blank space between the headlines so afterthat I get the same

      list like on the page Ive linked above in ?
      the code looks so

      <div class="post">
      				<h4 id="folding_category_list-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h4>
      				<small><?php the_time('l, F jS, Y') ?></small> -->
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘List headlines in the category’ is closed to new replies.