Skip to:
Content
Pages
Categories
Search
Top
Bottom

how to exclude breadcrumb specific forum


  • purityboy83
    Participant

    @purityboy83

    Hi

    I want to exclude “breadcrumb” from the topic list output screen of a specific forum.

    i use to plugin’s bbp style pack, bbP shortcodes

    thanks

Viewing 4 replies - 1 through 4 (of 4 total)

  • Robin W
    Moderator

    @robin-w

    This should do it

    add_filter( 'bbp_get_breadcrumb', 'rew_remove_xx_breadcrumb' , 10 , 4) ;
    
    function rew_remove_xx_breadcrumb ($trail, $crumbs, $r, $args) {
    	if (strpos($trail,  'Forum Name') !== false) {
        $trail = '' ;
    	}
    	return $trail;
    }

    replace ‘Forum Name’ with the name of the forum you want to exclude

    but it would also get rid of the breadcrumb in any forums for a topic with the forum name as the topic title – ie it is just searching for any occurrence of the text in the breadcrumb string !!


    purityboy83
    Participant

    @purityboy83

    Hi

    @robin-w

    I really think I can use bbpress well because of you.

    I am infinitely grateful to you

    Thanks


    Robin W
    Moderator

    @robin-w

    🙂


    lorensew
    Participant

    @lorensew

    Thanks for this information. I also have the same case.

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