• Resolved rsanger

    (@rsanger)


    I received the following message from Google:

    Search Console has identified that your site is affected by 1 Profile page structured data issue(s). The following issues were found on your site.Top critical issues*

    Missing field “mainEntity”

    In my research, it appears this usually occurs on FAQ pages and the fix is to add an FAQ block. Since this is for a Profile page, I’m not seeing any fixes. Any ideas on what to do here?

    Thank you for your help

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    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 one?

    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 11 months, 1 week ago by wjh.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Resolving ‘Missing field “mainEntity”‘ Issue on Profile Page in GSC’ is closed to new replies.