Forums

How to change the word/character limit in Categories? (8 posts)

  1. OfeliaCastro
    Member
    Posted 1 year ago #

    Hey. I'm having a problem. In my categories after so many lines or words, I get this:
    […]
    I would like to just display the full post or increase the limit to a higher number. How would I go about doing this?

  2. Chris_K
    Administrator
    Posted 1 year ago #

    Does your current theme have a category.php file?

    If so, edit that file and replace the_excerpt with the_content.

  3. MichaelH
    moderator
    Posted 1 year ago #

    You'll need to figure out what Template is displaying your Category archive--see Template Hierarchy to figure that out.

    Then you'll probably find that Template Tag, the_content, needs to changed.

    Also see:
    Customizing_the_Read_More

  4. OfeliaCastro
    Member
    Posted 1 year ago #

    What if my theme does not have a category.php?

  5. Kafkaesqui
    Moderator
    Posted 1 year ago #

    Add it. Easy way to do this, make a copy of your theme's index.php and name it category.php.

    You could also follow Michael's link to the Template Hierarchy doc that explains the template fallback logic for the various query types in WordPress. That will tell you which template your theme is using for categories, and so which one you need to edit.

  6. OfeliaCastro
    Member
    Posted 1 year ago #

    Ok, it's archive. But I don't want to replace it with the content. I don't want a character limit, but the content only adds a "read more" link, right?

  7. Chris_K
    Administrator
    Posted 1 year ago #

    Only if the post has a manually added <!--more--> tag.

    Try the_content...

  8. OfeliaCastro
    Member
    Posted 1 year ago #

    Thanks! Finally got it to work! Thanks for the help guys!

Topic Closed

This topic has been closed to new replies.

About this Topic