• Resolved hexdj

    (@hexdj)


    Hi, I am new to WordPress and just set it up a couple of days ago, it works and everything but I want to be able to do the following:

    I have 5 categories in my site and everytime a category is clicked on I want people to see ALL the articles in that category, not the entire post but just the link to each post. I looked in the plugin section but some of them just list one of each category, others exclude some categories which ultimately affects all the other category listings.

    As far as I understand I could do it myself by editing category-1.php, category-2.php and so on. But I need to find out what function to use to list just the title.

    I think I can do this thru the loop but I need some guidance. Can someone please help?

Viewing 1 replies (of 1 total)
  • Thread Starter hexdj

    (@hexdj)

    Actually I just figure it out myself, here’s how:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <@>" title=""><?php the_title(); ?></@>
    <?php endwhile; else: ?>
    <?php endif; ?>

    Just saved in category.php and now all categories show the list of posts in each of them.

    Now what I would like to know is what function will return the category name?

    I want to have the name of my category on top, so it should be something like:

    <h3><?php get_category_name(); ?></h3>

    that function probably does not exist but it would be nice 🙂

Viewing 1 replies (of 1 total)

The topic ‘List all posts in one Category’ is closed to new replies.