Hello,
Thanks for getting in touch with us.
You can use multiple Schema with Rank Math.
For example, you can use Product + FAQ
Or, Service + HowTo.
Basically, you can use FAQ and HowTo Schema with any other Schema type we offer.
If you wish to extend it, we can provide you with the filter but we do not offer customization falls outside the score of the support we provide:
https://rankmath.com/kb/filters-hooks-api-developer/#richsnippets
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Hi Todd,
I don’t need more than the filter/method so I can tweak around my needs
you didn’t answer my other question:
-does this work also to integrate schemas in different pages with rm schema, as for example integrate custom local bus. schema at page x with the main rm local bus. schema that appears at hp,aboutus,contactus
thank you
Hello,
Thank you for contacting Rank Math today.
does this work also to integrate schemas in different pages with rm schema, as for example integrate custom local bus. schema at page x with the main rm local bus. schema that appears at hp,aboutus,contactus
Yes the filter share by my colleague above should serve this purpose as well since you will only need to write some conditional logic to target the particular page.
Looking forward to helping you. Thank you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hi Michael,
the thing am trying to do doesn’t work with this filter!
to explain my issue:
there is schema 1rm : created by rm on hp, contactus, aboutus
and there is schema 2abc : created by some plugin on page called X & have some imp. schema data that I want to integrate with schema 1rm.
I want both of them to be integrated and have the same identical schema at the end, so both will change to fill each others with the missing fields.
can this be done using rm, if so wt is the filter/filters that I should try?
thanks
c.k.
Hi CK,
Thanks for the additional information.
This will depend on the schema type that you want to integrate. I will share an example of the product schema below. If you would like some attributes to be filled from another source when a value has not been entered via Rank Math, then you would do it like so:
/**
* Filter to modify product schema
*
* @param array $entity Snippet Data
* @return array
*/
add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
// get the brand value from some other source on the postmeta table if empty
$custom_brand = get_post_meta($post->ID,'custom_field_name', true);
$entity['brand'] = $entity['brand'] ? $entity['brand'] : $custom_brand;
return $entity;
});
Let me know if you have additional questions. 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.