WordPress.org

Forums

[resolved] Posts LIST in category and archives (9 posts)

  1. albinas
    Member
    Posted 8 years ago #

    Hello,

    In default, when click on a category link in wordpress site, all posts by that category are shown. i want that when clicked on a category link, all posts titles to show, without content, for example:

    "Posts by category "Life":

    Post no. 1 (link)
    Post no. 2 (link)
    Post no. 3 (link)

    "

    And so on. is it possible?

  2. albinas
    Member
    Posted 8 years ago #

    anybody?

  3. Chris_K
    Member
    Posted 8 years ago #

    Yes, it is very possible.

    Have a glance at Template_Hierarchy to get the fundamentals down, then read up on The_Loop a bit if you haven't already.

    Simplest way to do this is to create a category.php (or archive.php) in your theme's directory. Perhaps just copy the existing theme's index.php to get it started.

    Then edit The_Loop in the new file to remove the template_tags that display the_content and other unwanted data.

  4. albinas
    Member
    Posted 8 years ago #

    done that, uploaded to the wordpress category.php , the question is, what to do next? i need somehow connect that category.php file with the system to make it work and display categories pages as i want...

  5. Chris_K
    Member
    Posted 8 years ago #

    Did you look at Template_Hierarchy yet?

    You don't need to do anything. Just click a category link.

  6. albinas
    Member
    Posted 8 years ago #

    ok, thanks. how can i increase the number of those posts that are shown on each category number?

  7. albinas
    Member
    Posted 8 years ago #

    i mean, in options i set a number of posts that are displayed on a single page. how can i edit that number only at category page?

  8. Chris_K
    Member
    Posted 8 years ago #

  9. albinas
    Member
    Posted 8 years ago #

    It worked. Thanks. Problem is resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags