WordPress.org

Ready to get started?Download WordPress

Forums

GD bbPress Attachments
Attachment Text Appearing in Post Content (1 post)

  1. Josh
    Member
    Posted 5 months ago #

    I have a loop on my homepage of recent bbpress replies. In that loop I show a 30 word excerpt of the reply. All is fine except for very short posts < 30 words long, in which case attachment info shows up in the excerpt. For instance, at the end of the excerpt I get this:

    Attachments:Maggie-Cooper.jpg [delete | detach]Liv-Lansdale.jpg [delete

    I'm using bbp_get_reply_content() and wp_trim_words to present the content. This is only an issue for replies shorter than the excerpt length.

    Any idea why this is happening, and how to fix it? This problem doesn't occur in the forum itself.

    https://wordpress.org/plugins/gd-bbpress-attachments/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.