I try to remove “url” of Person schema in blog

#60977
  • Hello, I’m trying to remove the “url” property of the author key in the blog schema but I can’t do it, I tried multiple filters, Person, Article, Blog but nothing helped. Do you have a solution ?

    I would like remove the “url” at blog => blogpost => author => url

    can you help me ?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Alberto
    Rank Math business

    Hello,

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

    Could you try this code?

    add_filter( 'rank_math/snippet/rich_snippet_article_entity', function( $entity ) {
        $entity['author'] = [
    	'@type' => 'Person',
    	'url'  => '',
        ];
    
        return $entity;
    });

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello, thank you for your answer,
    I added the filter in the functions.php file but it doesn’t seem to have any effect, maybe a conflict? do you have another solution?
    thanks in advance

    Alberto
    Rank Math business

    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.

    Sorry for late answer

    Hello,

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

    Thank you.

    Hello,

    Thank you for contacting Rank Math today.

    I have been able to replicate this, please allow us to investigate this and get back to you.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Todd
    Rank Math free

    Hello,

    The screenshot is no longer available so I am not certain which URL you are talking about.

    Could you please add a new screenshot or the URL of the page where you are seeing the URL of the person so we can help?

    We tried multiple URLs from your website on Google SDTT but couldn’t see the URL error/warning.

    Do let us know.

    Hello,

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

    Thank you.

    Hello,
    Of course, I have uploaded an image to you (data sensitive area). This is the property “url” relative to the author, on the archive page of articles “articles /”

    We have chosen not to have an author page and we just want to delete the url linked to this page in the schemaType. There are no errors or warnings but we just do not want it to appear

    Hello,

    I have escalated this. Please keep the access token open in the time being.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Todd
    Rank Math free

    Hello Louis,

    We are so sorry but we do not have an option for doing that.

    You can disable the Blog Schema altogether on the Blog page if you like:

    add_filter( 'rank_math/json_ld', function( $data, $json )  {
    	if ( is_home() && isset( $data['Blog'] ) ) { // Remove Blog Snippet from posts page.
    		unset( $data['Blog'] );
    	}
    	return $data; 
    }, 11, 2);

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

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

The ticket ‘I try to remove “url” of Person schema in blog’ is closed to new replies.