WordPress.org

Forums

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

  1. Aaron Nevins
    Member
    Posted 1 year 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 1 year ago #

    Are you able to try this for me?

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

  3. Aaron Nevins
    Member
    Posted 1 year 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 1 year ago #

  5. Aaron Nevins
    Member
    Posted 1 year ago #

    Works great. Thanks alot.

  6. mrjgardiner
    Member
    Posted 1 year 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 1 year 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 10 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 7 months 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.

  10. sduensin
    Member
    Posted 4 months ago #

    Has this not been rolled into the plugin code proper? Arrgh.

  11. bobkesh
    Member
    Posted 4 months ago #

    This really needs an update to remove "read more" from short posts automatically.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Excerpt
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic