Schema not validating: image, priceRange, telephone not validating though added

#10724
Viewing 1 replies (of 1 total)
  • Hello,

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

    I have been able to replicate the issue on your site and this has been submitted to our dev team. At the moment, I have added the following code to your functions.php file to fix this:

    add_action('rank_math/json_ld',function($data, $jsonld){
    	$data['Organization']['Image'] = $data['Organization']['logo'];
    	$data['Organization']['telephone'] = $data['Organization']['contactPoint'][0]['telephone'];
    	$data['Organization']['priceRange'] = "$$";
    	unset($data['Organization']['logo']);
    	return $data;
    },99,2);

    Looking forward to helping you. 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 ‘Schema not validating: image, priceRange, telephone not validating though added’ is closed to new replies.