WordPress.org

Forums

Yoast SEO
[Plugin: WordPress SEO by Yoast] Breadcrumb broken if not results (1 post)

  1. Nicolas Juen
    Member
    Posted 3 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

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic