Skip to content

Function to add Ads or anything after bbPress Topic loop

  • This topic has 0 replies, 1 voice, and was last updated 1 year ago by Admin.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #197718
    Admin
    Administrator

    Add this code to your WordPress theme’s Function to add Ads or anything after your bbPress Topic.

    //Ads After topic
    add_action( 'bbp_template_after_replies_loop', 'rew_other_topics' );
    function rew_other_topics () {
    	 $topic_id = bbp_get_topic_id() ;
    	 $forum_id = bbp_get_topic_forum_id($topic_id) ;
    	echo 'Ads go here';
    }

    Just put it in this part of the code between the apostrophes:

    echo 'Ads go here';
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.