WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Excerpt
[resolved] Want to remove "read more" tag for short posts (9 posts)

  1. Aaron Nevins
    Member
    Posted 8 months ago #

    I'm looking to remove the "read more" tag from posts that are shorter than the minimum amount of characters.

    https://wordpress.org/plugins/advanced-excerpt/

  2. Chris Aprea
    Member
    Plugin Author

    Posted 8 months ago #

    Are you able to try this for me?

    https://gist.github.com/aprea/82b5cf043ade04f55463

  3. Aaron Nevins
    Member
    Posted 8 months ago #

    Sure thing. I'm a bit new to php though, so how would I go about adding this to the plugin?

  4. Chris Aprea
    Member
    Plugin Author

    Posted 8 months ago #

  5. Aaron Nevins
    Member
    Posted 8 months ago #

    Works great. Thanks alot.

  6. mrjgardiner
    Member
    Posted 8 months ago #

    This is exactly what I was looking for. The only question I have, is which file to do I edit to add this code? Is it advanced-excerpt.php? functions.php in the main wordpress folder or functions.php in the advanced excerpt folder? Thanks for any clarity you can offer.

  7. Chris Aprea
    Member
    Plugin Author

    Posted 8 months ago #

    You can add it to your theme's functions.php file or create a new functionality plugin and add it there instead.

  8. Bego Mario Garde
    Member
    Posted 4 months ago #

    I'm running into the same issue that your plugin adds a … to short posts that are no excerpt. I tried out the snippet you mentioned in this thread but it removes the read more link from excerpts, too.

    Besides that I think it would be better to fix the error than asking users to write a plugin and fix it themselves.

  9. Mark Bernard
    Member
    Posted 1 month ago #

    When I use the functionality plugin provided, it works MOST of the time. There are posts that don't have the "read more" link and should have. In each of these cases, the excerpt was truncated at a blank line.

Reply

You must log in to post.

About this Plugin

About this Topic