Skip to:
Content
Pages
Categories
Search
Top
Bottom

I have problem with breadcrum bbpress when using WordPress SEO by Yoast plugin

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

  • onydchic
    Participant

    @onydchic

    I’m having this problem as well. I want to use the BBPress breadcrumb on Forum pages, and Yoast everywhere else, but I can’t get the bbpress crums to work unless i disable it completely.

    I’d try contacting the developer, Yoast, and see if the can add a setting to disable the WP SEO plugins if bbPress is detected (is_bbpress()), which would allow you bbPress to use its own breadcrumbs on bbPress pages and use WPSEO breadcrumbs on all other areas of the site.

    Alternative he could also make his plugin disable the bbPress breadcrumbs all together.


    Bonafide Jones
    Participant

    @bonafide-jones

    I’m having the same exact problem. I’ve seen others find a way to do this.


    Pavle123
    Participant

    @pavle123

    I have been using this piece of code to call the default bbPress breadcrumbs.

    /**
     * Filter to call default bbPress breadcrumbs
     */
    add_filter( 'bbp_get_breadcrumb', 'myfix_bbp_get_breadcrumb', 1, 3 );
    function myfix_bbp_get_breadcrumb($trail, $crumbs, $r){
            // This will remove wordpress-seo filter to disable bbPress breadcrums by default
            remove_all_filters("bbp_get_breadcrumb",10);
            return $trail;
    }

    Pavle123
    Participant

    @pavle123

    Code above should be added to your functions.php file in your theme folder.


    sivaramapandian
    Participant

    @sivaramapandian

    hi friends,

    Me too, breadcrumb is not showing only in forum pages.

    Previously i had WordPress SEO plugin. Now disabled that too. But still i am not getting breadcrumb. No code is done. Latest bbpress has been installed as it is.

    Please help

    Thanks


    Mei Ling
    Participant

    @mei-ling

    If your theme gets a breadcrumb, then disable Yoast’s one. You may have two breadcrumb:

    First ==> WordPress
    Second==> BBPress

    You do this:

    */
    function tempera_breadcrumbs1() {
    	$temperas= tempera_get_theme_options();
    	foreach ($temperas as $key => $value) { ${"$key"} = $value ; }
    	global $post;
    	$separator = "<i class='icon-angle-right'></i> ";
    	
     if( !is_bbpress()){	
    	
    	if (is_page() && !is_front_page() || is_single() || is_category() || is_archive()) {
    		echo '<div class="breadcrumbs">';
            echo '<a href="'.home_url().'"><i class="icon-homebread"></i></a>'.$separator ;
            if (is_page()) {
    
    			$ancestors = get_post_ancestors($post);
                if ($ancestors) {
    
    				$ancestors = array_reverse($ancestors);
                    foreach ($ancestors as $crumb) {
                        echo '<a href="'.get_permalink($crumb).'">'.get_the_title($crumb).$separator.'</a>';
                    }
                }
            }
            if (is_single()) {
    			if (has_category()) {
    				$category = get_the_category();
    				echo '<a href="'.get_category_link($category[0]->cat_ID).'">'.$category[0]->cat_name.$separator.'</a>';
    			}
            }
            if (is_category()) {
                $category = get_the_category();
                echo ''.$category[0]->cat_name.'';
            }		
    		if (is_tag()) {
    			echo ''.__('Tag','tempera').''.$separator.single_tag_title('', false);
    		} 
            // Current page
            if (is_page() || is_single()) {
                echo ''.get_the_title().'';
            }
           echo '</div>';
        }
    	elseif (is_home() && $tempera_frontpage!="Enable" ) {
            // Front page
            echo '<div class="breadcrumbs">';
            echo '<a href="'.home_url().'"><i class="icon-homebread"></i></a> '.$separator;
            _e('Home Page','tempera');
            echo '</div>';
        }
     }	
    } // tempera_breadcrumbs()
    add_action('after_setup_theme','remove_fonction_parent2');
    function remove_fonction_parent2() {
       remove_action('cryout_before_content_hook','tempera_breadcrumbs');
       add_action ('cryout_before_content_hook','tempera_breadcrumbs1');
    }
    /*

    You have to change the information about your theme.

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