Hello @rsanger,
I’m sorry for the issue experienced with our plugin. Google recently announced changes to a few schema markup functions. It’s currently in our product roadmap to add ProfilePage
schema properly into our product.
In the meantime, we recommend not marking the pages as Profile Page in the Yoast SEO meta box schema tab.
We are also here looking for a fix for profile pages showing Missing field ‘mainEntity’
Please update us asap
We have the same issue. I hope this will be updated soon!
Any update on this? Also have the same issue
Hi, Any fix? I have the same problem.
Hi @maybellyne, we’re having the same problem here.
My coding skills are poor, but I’m trying to put together a fix from various sources, including official Yoast tech doc.
Google Search Console is accurately identifying our Buddypress user profiles as Profile Pages, but the Yoast plugin is identifying them as Webpages, so I’ve tried adding this code to our theme’s functions.php file:
add_filter( 'wpseo_schema_webpage', 'yoast_buddypress_fix' );
/**
* Changes @type of Webpage Schema data.
*
* @param array $data Schema.org Webpage data array.
*
* @return array Schema.org Webpage data array.
*/
function yoast_buddypress_fix( $data ) {
if ( ! bp_is_user() ) { // if current page is not Buddypress user profile page
return $data;
}
$data['@type'] = 'ProfilePage';
$data['mainEntity'] = 'Person';
return $data;
}
However, this is not overriding the Yoast schema output, which still indicates that the user profile is a simple Webpage, nor is it fixing the mainEntity
error.
Any help on getting this to work would be most appreciated!
-
This reply was modified 1 year, 1 month ago by
wjh.