Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: BuddyPress 2.2.1 incompatible with Yoast SEO, botched page titles

@danbp

Participant

hi @michaelhpdx,

maybe these posts will help you ?

https://buddypress.org/support/topic/my-conditional-tags-are-not-being-respected-in-genesis/
https://yoast.com/wordpress/plugins/canonical/

Or maybe this snippet (intended for WP SEO at least) which removes canonical

function bpfr_wpseo_canonical_exclude( $canonical ) {
  global $bp;
  if ( function_exists( 'buddypress') && ( buddypress()->displayed_user->id || buddypress()->current_component ) ) {
    $canonical = false;
  }
  return $canonical;
}
add_filter( 'wpseo_canonical', 'bpfr_wpseo_canonical_exclude' );
Skip to toolbar