• I have two questions. They are probably very basic. First is there anyway to have the categories expand when to show a few links to recent posts or posts of my choosing?

    My other question. When I click on a category and it takes me to the category page. Is there a way to not have the full posts show. Only an excerpt or the title?

    Sorry I’m new at wordpress and couldn’t seem to find any info about either of my questions.

Viewing 6 replies - 1 through 6 (of 6 total)
  • To answer your second question, in the template file
    /wp-content/themes/{themename}/category.php

    find the_content(‘ ……. ‘) and change it to
    the_excerpt()

    that will display post summary instead of full post.

    Thread Starter eruptblog

    (@eruptblog)

    I’m currently using iblog-2 and don’t see that file that you mentioned in the directory. I also don’t see category.php in either the default or classic theme directories. Is there another file I should be looking for?

    themes that don’t have category.php use archive.php instead.

    Sorry

    Thread Starter eruptblog

    (@eruptblog)

    I don’t see archive.php either. Here are a list of the php files I see
    404
    comments
    footer
    functions
    header
    index
    page
    search
    searchform
    sidebar
    single

    Any idea of which one I should edit?

    I wasn’t familiar with that theme. I now downloaded it and am looking at its code.

    themes that don’t have archive.php use index.php in its place. Unless you want excerpts displaying on your main posts page, you don’t want to modify index.php to display excerpts as it will affect your posts page also.

    make a copy of index.php and save it as category.php Then you will have a category template file. WP will use category.php on category pages, if the file exists. With the new template file you can change the way category pages display by changing the_content to the_excerpt while still leaving your main posts file as it is.

    Thread Starter eruptblog

    (@eruptblog)

    Thank you very much for your help, that worked, my categories now display excerpts.

    Hopefully someone can shed some light on my first question.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Getting categories to display posts differently’ is closed to new replies.