Help with wordpress please..

by alanc3
4 replies
  • WEB DESIGN
  • |
hi warriors,

I have a site setup on wordpress which i add articles to all the time. As it stands the articles are added to a categories section in the sidebar by way of a simple widget. The problem i have is when you click on that category to view the posts it just takes to you to the most recent post in that category and to view more you have to keep pressing the next button.

What i would like is for when you click on a certain category it shows one post with maybe 10 to 15 post titles for that category in a sort of table. Then if the user would like to see another 10-15 post titles they can click the next button. Understand where i am coming from? :confused:

Any ideas would be greatly appreciated
#wordpress
  • Profile picture of the author we_got_tops
    If I read you correctly, you're saying that when you click on a category archive, it displays the entire body of the most recent post and you'd like it to display just the titles of many posts in that category?

    What theme are you using? Some have special features to control this type of thing, other times you have to edit the specific category.php files.
    Signature
    Social Web Q and A -- Teaching you all about the ever-evolving web

    Bowling Tips for better bowling
    {{ DiscussionBoard.errors[2818975].message }}
    • Profile picture of the author alanc3
      Yeah thats right, I am using a customized theme. Is there a plugin that could handle this sort of thing? I really would like to get it sorted it out as it help would my seo by making my site easier to navigate.
      {{ DiscussionBoard.errors[2820554].message }}
      • Profile picture of the author SteveJohnson
        Originally Posted by alanc3 View Post

        Yeah thats right, I am using a customized theme. Is there a plugin that could handle this sort of thing? I really would like to get it sorted it out as it help would my seo by making my site easier to navigate.
        No special plugin required. Your theme needs to have special coding - either in the index.php file or in an archive.php or category.php file - to control the way your category lists are displayed.

        If you're familiar with PHP at all, this isn't a hard thing to do. To get you started, try this:

        Copy your theme's index.php file. Rename it to category.php. In the new file, look for "the_content('there may be some words here');" and change that to "the_excerpt()".

        Upload category.php to your theme folder on your server, then look at a category listing. You should see a number of entries with a clickable headline, and a short excerpt for the body text.
        Signature

        The 2nd Amendment, 1789 - The Original Homeland Security.

        Gun control means never having to say, "I missed you."

        {{ DiscussionBoard.errors[2820619].message }}
  • Profile picture of the author pr678com
    Banned
    yes, you can change the code of category.php to fix this problem.
    {{ DiscussionBoard.errors[2823054].message }}

Trending Topics