I want to replace @Person to @Organization in Application Schema

#512790
  • Resolved USM LoveLy
    Rank Math free

    Hey everyone,

    I started a site where I write about Software Applications. I want to represent my organization as an author. So, in Application Schema > author > @type, I want to replace Person with Organization.

    I tried this code:

    # Representing Organization As Author In SCHEMA
    add_filter( "rank_math/snippet/software_application_rich_snippet", function( $entity ) {
        $entity['author']['@id'] = 'https://geometrydashapk.pro/#organization';
        $entity['author']['@type'] = 'Organization';
        $entity['author']['name'] = 'Geometry Dash APK';
        return $entity;
    });
    

    But, it is not working. Still, the author as a person appears in the Software Application Schema!

    Looking Forward. 🙂

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

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

    Please try adding the following filter to achieve that:

    add_filter( "rank_math/snippet/rich_snippet_softwareapplication_entity", function( $entity )  {
    	$entity['review']['author'] = [
            '@type' => 'Organization',
            '@id' => 'https://geometrydashapk.pro/#organization',
            'name'  => 'Geometry Dash APK',
        ];
        return $entity;
    });

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

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

    Thank you.

    Thank you. It is working now.

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

The ticket ‘I want to replace @Person to @Organization in Application Schema’ is closed to new replies.