WP Category page question

by kctm
9 replies
  • WEB DESIGN
  • |
Hello,

There's something I'd like to change on my blog, but I don't know how to do.
I've searched on the net, but the only answers I got are for very old wordpress versions.

I'd like to change the way the posts are displayed on the category pages.
Now, when I click on a category link, all the posts of this category are displayed on the page. What I would like to have is: only the titles of the posts of the category.

Is there anyone who could help me and explain me how I can do that ?

Thanks a lot.
#category #page #question
  • Profile picture of the author Elshereef
    To make this you should have some coding knowledge. It depends on your theme, if you have category.php then change the loop in this file, if you don't have this file, then change the loop in archive.php.
    {{ DiscussionBoard.errors[7828274].message }}
  • Profile picture of the author Istvan Horvath
    Knowing what theme is active on your blog would make things easier.

    To add to what the reply above said: if you don't have a category.php in your theme (very few themes have, btw) then just save your archive.php as category.php.
    Warning, look for the "singular" i.e. archive.php because the "plural" archives.php is something different!

    After that find in it the line that says:
    <?php the_content(); ?>
    Delete it!

    Done.
    Signature

    {{ DiscussionBoard.errors[7828560].message }}
    • Profile picture of the author kctm
      Yes, I have some coding knowledge, so it won't be a problem.

      I'm using Genesis framework + the news child theme.

      My problem is I don't have any category.php nor archive.php...
      Signature
      http://seopressorpluginx.com/
      Seopressor plugin is a WordPress plugin that will help your on-page optimization. By optimizing your on-page SEO you will increase your Google rankings.
      {{ DiscussionBoard.errors[7829569].message }}
      • Profile picture of the author KevinBurns
        If I'm not mistaken, you should be able to create a custom archive.php with Genesis

        Creating a Custom Archive Page with Genesis

        You might also try a wordpress plugin that displays the category link only

        Post Category Only

        hope this helps
        {{ DiscussionBoard.errors[7829773].message }}
        • Profile picture of the author Istvan Horvath
          Originally Posted by KevinBurns View Post

          If I'm not mistaken, you should be able to create a custom archive.php with Genesis
          You are absolutely mistaken, actually! You can create the Page template similar to archives.php (plural form!) - not the template file archive.php.

          There is a difference between custom archive Pages created by using a custom Page template that could be named anything and a multipost template that WP recognizes by name: archive.php.
          Signature

          {{ DiscussionBoard.errors[7829913].message }}
          • Profile picture of the author kctm
            I'm not sure I understand...

            Now, in Genesis I don't have any category.php file.
            So when I click on the link of a given category, I can see all the posts of that categories (the entire posts). I don't want that.

            But I still don't know what I must do... Should I create a custom archive page like KevinBurns said ?
            Signature
            http://seopressorpluginx.com/
            Seopressor plugin is a WordPress plugin that will help your on-page optimization. By optimizing your on-page SEO you will increase your Google rankings.
            {{ DiscussionBoard.errors[7830614].message }}
  • Profile picture of the author Istvan Horvath
    No. When you click on a category name it is NOT the custom Archive PAGE that is displaying your posts. It is one of the so-called multipost templates.

    In "normal" WP (which excludes most of the frameworks that are made solely to confuse the users...) basically there are 3 kind of templates:
    - multi-post templates - e.g. index, archive, category... templates that will display more than one post
    - single post template (single.php)
    - Page templates

    They have different roles and different capabilities.
    You want/need the multi-post type of template for your categories.

    WP works in this way (without telling you the technical details):
    when you click on a category's name (link) WP starts looking for these template and in the exacvt order as outlined below =

    - category-XX.php (where XX is the cat ID and will be used to display posts ONLY from that cat); if not found then
    - category.php - for all cats; if not found then
    - archive.php (also used to display monthly, daily...time-related archives)
    - index.php or main template - the general fallback file for any missing template

    Now, the problem with paid themes/frameworks is that unless you find somebody that is
    a) also a user of the theme/framework
    b) know WP and doesn't talk nonsense...

    it will be very difficult to get reliable advice.

    Since you are a paying customer, and now you know exactly what you need... you can go back to the framework's support and ask them
    Signature

    {{ DiscussionBoard.errors[7830703].message }}
  • Profile picture of the author kctm
    Thanks for your explanations.
    Unfortunately, their support don't seem willing to be helping me.
    Here's what they say:

    "Thank you for your question. Unfortunately, we are not able to provide assistance with this, as it will require customization to your theme’s code. We have a growing collection of code snippets that can be used as a starting point for many customizations. You can find the code snippets at Code Snippets - Genesis Framework

    If you find that these code snippets are not sufficient or if you need additional assistance we would encourage you to post your question to our community forum where other users and developers can provide suggestions on how to proceed. The community forum can be found at StudioPress Community Forums

    For more comprehensive theme customization solutions we have compiled a list of Genesis developers that may be able to assist for a fee. The approved Genesis developer list can be found at Genesis Developers

    Thank you for choosing StudioPress."

    I think they're not very fair... I paid for the theme and I'm only asking for some explanations on how to do something very simple.
    Don't you agree ?
    Signature
    http://seopressorpluginx.com/
    Seopressor plugin is a WordPress plugin that will help your on-page optimization. By optimizing your on-page SEO you will increase your Google rankings.
    {{ DiscussionBoard.errors[7831045].message }}
  • Profile picture of the author Istvan Horvath
    Sorry to hear that.

    Of course, I should have warned you to ask your questions in a very simple way - since most support people are dumb

    I don't know ho you phrased your question, but it should be something like this (to support or post in their forum):

    "Which template file is used to display the category archives, i.e. to show the list of posts from a category when clicked on the category name? Please, I need the exact name of that template file!"

    That's it, nothing else. When you get a precise answer, we can go from there...
    Signature

    {{ DiscussionBoard.errors[7831145].message }}

Trending Topics