Add “brand” to my organizational schema

#425187
  • Resolved Ross
    Rank Math free

    Hello, what code should I put inside this filter:
    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    return [];
    }, 99, 2);

    to get this schema: https://ibb.co/wdJPD4c

    Thank!

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 using this filter to add the Brand to the Organization schema:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
        if ( isset( $data['publisher'] ) ) {
            $data['publisher']['brand']['@type'] = 'Thing';
    	$data['publisher']['brand']['name'] = 'Mudanzas Madrid';
        }
        return $data;
    }, 99, 2 );

    I hope that helps.

    Thank you.

    Ross
    Rank Math free

    Thanks Reinelle!

    Hello,

    Glad that helped.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

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

The ticket ‘Add “brand” to my organizational schema’ is closed to new replies.