How to remove author name

#1025250
  • Resolved Husky Dominant
    Rank Math free

    How do I remove the author’s name from the links that I share on other platforms of the website? The author is in the embedded link.

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

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

    Could you please confirm which platform you are referring to?

    Also, please share the affected URL so we can check. You can add it to the sensitive data section by editing your first post

    Sensitive Data Section

    It is completely secure, and only our support staff has access to that section.

    Looking forward to helping you.

    Husky Dominant
    Rank Math free

    Hello,

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

    Thank you.

    Hello,

    It seems that you have missed adding the platform/application where you shared the link.

    However, there are no author meta tags in the page’s source code.

    If that application gets the author details from the schema, then you can use this filter to remove the author property from the article schema:

    add_filter( "rank_math/snippet/rich_snippet_article_entity", function ( $entity ) {
    	if ( isset( $entity['author'] ) ) {
    		unset( $entity['author'] );
    
    		return $entity;
    	}
    
    	return $entity;
    } );

    And here’s a link on how to apply a filter on your site:
    https://rankmath.com/kb/filters-hooks-api-developer/

    Also, please be advised that, according to Google guidelines, author details are required for the Article Schema. The author’s details are usually taken from the settings of the user who publishes the post.

    You can check out this Google document on structured data types: https://developers.google.com/search/docs/data-types/article

    Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘How to remove author name’ is closed to new replies.