My pages still show Author Name and URL even though I have disabled Author Archi

#572577
  • Resolved Anonymous
    Rank Math free

    My pages still show Author Name and URL even though I have disabled Author Archive, is there something else I need to do?

    Kind Regards,
    Robert

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    Disabling the Author Archives option is recommended when you don’t have any other authors on your site, but, that doesn’t remove the author details in the Article Schema.

    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

    However, if you really wanted to remove the author details, then you may need to use this filter to remove it:

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

    And here is a guide you can follow to add the filter to your site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps.

    Thank 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 1 replies (of 1 total)

The ticket ‘My pages still show Author Name and URL even though I have disabled Author Archi’ is closed to new replies.