• Hello, this excerpt control plugin is exactly what I need… for bbpress excerpts.

    In a forum I am using some code from https://premium.wpmudev.org/forums/topic/bbpress-topic-excerpts, namely:

    function add_topic_excerpt() {
    echo “<p>”.bbp_get_topic_excerpt( $topic_id, 200).”</p>”;
    }
    add_action(‘bbp_theme_after_topic_title’, ‘add_topic_excerpt’ );

    Unfortunately, the bbpress excerpt does not show active links (html) from the content as I desire.

    Is there a way to extend your plug-in to work with bbpress?

    Or do you have any other ideas?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WPKube

    (@wpkube)

    Our plugin is meant to filter the existing excerpt to fit your needs. In the case of bbpress they do not use the existing WordPress system for excerpt and content.

    So what you need is different from what our plugin was meant to do.

    I checked bbpress code and they explicitly strip HTML when generating the excerpt, so the only solution would be to use a custom function for getting the excerpt instead of bbp_get_topic_excerpt. Basically copy their function, rename it and remove the strip_tags function from there.

    Thread Starter jaykaybee

    (@jaykaybee)

    Thanks for checking the bbpress code and clarifying the way forward! I know this must be a remedial question for you, but where do you look to check the bbpress code? And any other keywords I should use in looking at their code to find their function for generating the excerpt? (Or do you remember the name of the function.) Thanks again for your reply!

    Plugin Author WPKube

    (@wpkube)

    You’re welcome.

    Basically just do a search for “function bbp_get_topic_excerpt”

    The only result for that is includes/topics/template.php (line 743)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Including html in bbpress excerpts’ is closed to new replies.