WordPress.org

Support

Support » Plugins and Hacks » Yoast SEO » [Plugin: WordPress SEO by Yoast] Breadcrumb broken if not results

[Plugin: WordPress SEO by Yoast] Breadcrumb broken if not results

  • Hi,

    When a arhciveview have no results ( like when filtering ), the breakcrumb is broken because the function get_post_type() return nothing ( make a notive by the way, line 227 class-breadcrumb.php )
    You can make this if the post_type given is empty (i put it line 223 class-breadcrumb.php ) :

    if( empty( $post_type ) ) {
    					global $wp_query;
    					$post_type = $wp_query->query_vars['post_type'];
    				}

    Rahe

    http://wordpress.org/extend/plugins/wordpress-seo/

  • The topic ‘[Plugin: WordPress SEO by Yoast] Breadcrumb broken if not results’ is closed to new replies.
Skip to toolbar