WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
Breadcrumb broken if not results (1 post)

  1. Rahe
    Member
    Posted 2 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic