Themeover (@bastywebb)

Forum Replies Created

Viewing 1 replies (of 1 total)
  • @bastywebb

    Participant

    Hi guys,

    I was battling with this issue too. I didn’t want to abandon the Yoast SEO plugin so this is the function I added to functions.php in my WordPress theme to fix the issue:

    // fix yoast seo plugin issue with user title
    function fix_not_found_title($title){
    if (is_bbpress()){
    if ($title == ‘Page Not Found – SiteNameHere’){
    return ‘Forum User: ‘.bbp_get_displayed_user_field( ‘display_name’ );
    } else {
    return $title;
    }
    } else {
    return $title;
    }
    }
    add_action( ‘wpseo_title’, ‘fix_not_found_title’ );

    It’s a bit of a hack but it works for now. I hope that helps!

    Cheers,

    Sebastian

Viewing 1 replies (of 1 total)