WordPress.org

Ready to get started?Download WordPress

Forums

Category - List full post instead of excerpt (11 posts)

  1. ghaib
    Member
    Posted 7 years ago #

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

  2. Chris_K
    Member
    Posted 7 years ago #

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

  3. ghaib
    Member
    Posted 7 years ago #

    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?

  4. Chris_K
    Member
    Posted 7 years ago #

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

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

  5. ghaib
    Member
    Posted 7 years ago #

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

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

  6. Chris_K
    Member
    Posted 7 years ago #

    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)

  7. ghaib
    Member
    Posted 7 years ago #

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

  8. Chris_K
    Member
    Posted 7 years ago #

    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.

  9. ghaib
    Member
    Posted 7 years ago #

    I'm confused right now.

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

  10. moshu
    Member
    Posted 7 years ago #

    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!!!)

  11. ghaib
    Member
    Posted 7 years ago #

    Thanks guys, it's working now

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.