Author schema

#505927
  • Resolved ibaya99
    Rank Math free

    Hi,
    I have not filled out any Author information in schema, yet in the View Page Source of the website, there is Author information.
    Do you know where that is coming from, please?

    See sensitive area, please.

    Thank you very much!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention.

    Rank Math pulls the author information from the profile of the author of the page/post and set that to the Schema automatically.

    Hope that clarifies your doubt. Please do not hesitate to let us know if you need our assistance with anything else.

    Thank you.

    ibaya99
    Rank Math free

    Hi,
    Do you know where I can remove the author information?
    Thanks!

    Hello,

    Can you please confirm if you want to remove sameAs information from the Schema? If so, please try adding the following filter to see if that works for you:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    	if ( ! isset( $data['ProfilePage'] ) ) {
    		return $data;
            }
    	unset($data['ProfilePage']['sameAs']);
    	
        return $data;
    }, 99, 2);

    Here’s how you can add filter/hook to your site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    ibaya99
    Rank Math free

    Hi,
    Thank you for your message.
    No, I am not trying to remove the sameAs line from Schema, but only the twitter URL that appears behind it (please check the screenshot in Sensitive Data). In other words, I am asking where the ‘sameAs’ gets populated from, because I want to remove the Twitter IRL.
    Thanks.

    Hello,

    Please try applying the following filter to remove only Twitter data from sameAs entity.

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    	if ( ! isset( $data['ProfilePage'] ) ) {
    		return $data;
    	}
    	
    	if(count($data['ProfilePage']['sameAs'])==2){
    		unset($data['ProfilePage']['sameAs'][1]);
    	}elseif(count($data['ProfilePage']['sameAs'])==1){
    		unset($data['ProfilePage']['sameAs']);
    	}
    	
        return $data;
    }, 99, 2);

    Note: When there will be no data in sameAs field, sameAs field will be automatically removed from the Schema. This is because, any blank entity might cause you error on Rich Results Test and also make the Schema invalid.

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    ibaya99
    Rank Math free

    Hello,

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

    Thank you.

    ibaya99
    Rank Math free

    Hi,

    Thank you for your help.

    I don’t want to remove the sameAs line. I only want to remove that twitter address because that is a wrong twitter address, and it does not exist (see it in sensitive data section, please).
    I want to add some valid social media profiles to the sameAs line. Where can I enter these details (ie. social media profile URLs) so it populates the sameAs line?

    Thanks!

    Hello,

    Sorry for the confusion, but the Twitter URL showing in the article schema is coming from the Twitter username of your admin user.

    You can edit the user and scroll down to this section to update it as well in the schema

    Twitter

    Here’s a link for more information:
    https://rankmath.com/kb/open-graph-meta-tags/#twitter-creator

    Hope that helps.

    Thank you.

    ibaya99
    Rank Math free

    Problem solved. That was it. Thank you very much.

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘Author schema’ is closed to new replies.