WordPress.org

Ready to get started?Download WordPress

Forums

How to display only post summary in category page? (5 posts)

  1. Joe Clark
    Member
    Posted 5 years ago #

    Hay Friends,
    I hope any one would guide me that how to display the summary and the image from custom field in all post when user is browsing by category?

    for example look at this site: http://www.wordpressgames.com/games/action/
    this guy is only displaying image and text in his category page, the flash file is not displaying.

    I want to ask that how to display posts in category page in that format?
    I am using the same theme but my full post appears when i browse by category.

    Urgent responses are more then welcome.

    [moderated--bump removed. Please refrain from bumping as per Forum Rules]

  2. MichaelH
    Member
    Posted 5 years ago #

    With the help of the Template Hierarchy article, determine what Template is displaying your categories. Then you will want to edit that file and use the appropriate structure such as the template tag, the_excerpt(). But read the first four questions here for more discussion on that: discussion about title, content, teaser, excerpt

    Related:
    Stepping Into Template Tags
    Stepping Into Templates

    Other:
    http://wordpress.org/extend/plugins/custom-field-images/
    http://wordpress.org/support/topic/209656?replies=11

  3. Joe Clark
    Member
    Posted 5 years ago #

    Thanks MichaelH for your reply,
    I am not a coding expert but i tried to replace the_content() with the_excerpt() in my template's archive.php file and it worked when i browse category page, but it caused problem in the index page by showing booth content and excerpt data.

    I am not a technical persone, so please help me in simple words and the exact locations where i have to make change.

    Many Thanks

  4. MichaelH
    Member
    Posted 5 years ago #

    Look for category.php in your theme. If you are going to continue to modify a theme's template files, you will want to understand Template Hierarchy.

  5. esmi
    Forum Moderator
    Posted 5 years ago #

    If you don't have a category.php file in your theme, make a copy of your current archive.php file and name that category.php. Then reverse the changes you made in archive.php.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags