Change Strucured Data

#142134
  • Resolved Alex Krenn
    Rank Math free

    Hi,
    I am trying to change the markup data with rank math – but does not work. For the post
    https://boesmueller.at/2021/01/13/nachhaltigkeit-leh/ I would for example like to have an organisation instead of a “person” in the “Autor” field. I tried your codes from the forum:

    add_filter( “rank_math/snippet/rich_snippet_Article_entity”, function( $entity ) {
    $entity[‘author’][] = [
    ‘@type’ => ‘Organization’,
    ‘name’ => ‘Bösmüller Print Management GesmbH & Co. KG’
    ];
    return $entity;
    });

    does not work.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Danial
    Rank Math business

    Hello,

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

    I tried accessing your website link, but it says 404 error.

    Can you please share with us the link again so we can have a look?

    Looking forward to helping you.

    Hello,

    Thank you for keeping in touch with us.

    Can you please try this code instead?

    add_filter( "rank_math/snippet/rich_snippet_article_entity", function( $entity ) {
    	$entity['author'] = [
    		'@type' => 'Organization',
    		'name' => 'Bösmüller Print Management GesmbH & Co. KG'
    	];
    	return $entity;
    });

    Let me know if it works on your end. We are looking forward to helping you.

    Works! Thank you!

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

You must be logged in to reply to this ticket.