Unparsable structured data; Incorrect value type “@id”

#22300
  • Resolved Tony Roberts
    Rank Math pro

    Please have a look at the second link I placed in here. It is an example that is more representative of all the others.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Michael Davis
    Rank Math pro

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I cannot identify any errors on your page’s structured data. Here is a screenshot:
    Schema data

    It is likely that this is related to page caching on your end.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Tony Roberts
    Rank Math pro

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Michael Davis
    Rank Math pro

    Hello,

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Tony Roberts
    Rank Math pro

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Michael Davis
    Rank Math pro

    Hi Tony,

    Thanks for the access.

    The structure of your website seems to be a bit unique, could you please shed some light on where the data from the affected page is getting loaded from?
    The page does not possess a canonical tag and clicking on edit from the top bar takes you to the posts listing page which explains the problem in referencing the post id.
    I believe that removing the article snippet from this page would be the best approach and leave the local business schema.

    Thank you.

    Tony Roberts
    Rank Math pro

    I agree. How do we remove the article schema from it though?
    These are dynamically created pages for an MLS plugin. The plugin supplies the real estate listings, and they’re placed on the site dynamically. You can’t edit the pages directly or indirectly aside from placing something in the header of all of that type.

    Can we write an exclusion? Even if we make RankMath not touch them at all, I think it would be better than having this unparsable structured data.

    Michael Davis
    Rank Math pro

    Hello,

    Thank you for contacting Rank Math today.

    You can make use of the following filter to check if it is a listing page and then disable the article schema. You may need to check from the MLS plugin author a function that is used to check the listing pages for the conditional:

    /**
     * Filter to Short-circuit Schema if a 3rd party is interested in generating their own data.
     * Replace $schmea_type with schema name like article, review, etc.
     * @param bool  $value true/false Default false
     * @param array $parts Post Data
     * @param array $data  Schmea Data
     * 
     * @return bool
     */
    add_filter( "rank_math/snippet/rich_snippet_article", function( $value, $parts, $data ) { 
            //Check if is MLS listing and return true
            if([condition here]){
    	return true;
            }
    }, 10, 3 );

    Looking forward to helping you. Thank you.

    ​​​​​​

    Tony Roberts
    Rank Math pro

    Awesome, thank you! My PHP isn’t strong enough to be able to do that myself, so I appreciate the help.
    I wasn’t certain how to identify the condition, but I figured the common url scheme would do, and it worked.
    I’m now validating the fix in GSC, and if I find more pages that get flagged, I can use an OR for those ones.
    I appreciate your help!

    Michael Davis
    Rank Math pro

    Hi there,

    I am glad that this info was helpful 🙂

    Feel free to contact us should any other problem come up.

    Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)

The ticket ‘Unparsable structured data; Incorrect value type “@id”’ is closed to new replies.