Hello,
Thank you for contacting Rank Math today.
I can suggest that you make use of the following filter to update the og:type
on the pages:
/**
* Allows theme developers to change the OpenGraph type of the page.
*
* @param string $type The OpenGraph type string.
*/
add_filter( 'rank_math/opengraph/type', function( $type ) {
if(is_page('page_id_here')){
return "Website";
}
return $type;
});
You will need to add the page id on the function and then add this code to your theme’s functions.php
file.
Looking forward to helping you. Thank you.
It works properly. Thank you!
Hello,
We are super happy that your issue is resolved. 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.