WordPress.org

Support

Support » How-To and Troubleshooting » Category – List full post instead of excerpt

Category – List full post instead of excerpt

  • When someone clicks a categry, WP shows all posts as excerpts, how do I make it shows the full post instead?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Chris_K

    @handysolo

    Does your theme have a category.php? If it does, edit that file. Find the_excerpt and replace it with the_content.

    Theme doesn’t (i don’t think any theme does) but there’s a “categories.php” in the WP-admin folder. Is that the one?

    Chris_K

    @handysolo

    Heh, I goofed (although category.php is valid…) do you have an archive.php?

    http://codex.wordpress.org/Template_Hierarchy#Category_Page

    Yes, the theme has anarchive.php and archives.php

    Can I replace the_excerpt with the_content in the wp-admin/categories.php file?

    Chris_K

    @handysolo

    Can I replace the_excerpt with the_content in the wp-admin/categories.php file?

    Nope, you only want to make that replacement in your THEME’s files (wp-content/themes/YourThemesName)

    Ok, but I don’t have the file in my themes flder, it’s not even in the default theme’s folder.

    Chris_K

    @handysolo

    Then why, may I ask, did you say this?

    Yes, the theme has anarchive.php and archives.php

    Make up your mind!

    If now you do NOT have an archive.php, and you DO still have the original issue, then clearly you want to look in YOUR THEME’s index.php, right?

    Or here’s a thought: Edit your theme’s index.php. Search for the_excerpt. Replace with the_content.

    I’m confused right now.

    The theme has archive.php and archives.php
    The wp-admin folder has categories.php

    Forget the wp-admin directory. NEVER go there – it is NOT for you for modifying!

    The only directory where you should mess around is your theme directory in
    wp-content/themes/yourtheme

    Edit the archive.php (notice: no S at the end!!!)

    Thanks guys, it’s working now

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Category – List full post instead of excerpt’ is closed to new replies.