Skip to:
Content
Pages
Categories
Search
Top
Bottom

Content filter not working


  • tonygao
    Participant

    @tonygao

    hello,

    I use filter “the_content” to automatically add ads at the bottom of pages, posts. But it is not working on bbpress oages(topic, etc)

Viewing 1 replies (of 1 total)

  • Robin W
    Moderator

    @robin-w

    if within content you can use

    How to filter bbpress content in WordPress

    but if at the bottom of ‘bbpress’ pages, then there are a bunch of actin hooks you can link to

    do_action( 'bbp_template_after_forums_index' );
    do_action( 'bbp_template_after_topics_loop' );
    do_action( 'bbp_template_after_replies_loop' );
    do_action( 'bbp_template_after_user_profile' );
    do_action( 'bbp_template_after_search_results_loop' );

    should get you most of the way there

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar