Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hi Chris,
Thanks for getting in touch with us.
Please share this code with the Sabai dev. team:
https://support.rankmath.com/ticket/no-seo-title-for-sabai-listing-page/?view=all#post-13664
They will be able to change the code to reflect the accurate variables for their Discuss plugin.
If any input is needed from our end, please do not hesitate to let us know.
I managed to get halfway done myself with this;
/**
* Filter to change the page title.
*
* @param string $title
*/
add_filter( 'rank_math/frontend/title', function( $title ) {
if(is_sabai_discuss_question()){
global $post;
return $post->title;
}
return $title;
});
add_filter( 'rank_math/frontend/description', function( $description ) {
if(is_sabai_discuss_question()){
global $post;
$sabai_post = get_post($post->ID);
$sabai_entity = $GLOBALS['sabai_entity'];
//return Entity_RenderField($sabai_entity, 'content_body', 'summary');
return $sabai_post->post_content;
}
return $description;
});
/**
* Allows filtering of the robots meta data.
*
* @param array $robots The meta robots directives.
*/
add_filter( 'rank_math/frontend/robots', function( $robots ) {
if(is_sabai_discuss_question()){
$robots['index'] = 'index';
}
return $robots;
});
But Support is slow from Sabai Discuss. If anyone used Sabai discuss, this fixes the SEO titles. I doesn’t add a description unfortunately.
Hello,
Thank you for contacting Rank Math today.
I am glad that you have been able to make some progress. Could you please test whether replacing the following line:
return $sabai_post->post_content;
with the following will have an effect on this issue:
return $post->post_content;
Looking forward to helping you. Thank you.
No, unfortunately not 🙁 I tried inputting a description manually into the code and that worked. Thanks for the help but I see the plugin doesn’t even put the correct URL in the meta info either.
I think the plugin is not ready for rank math.
Hi Chris,
We are so sorry but we hope that the Sabai plugin developer will respond soon.
If you need help with anything else, please open a new support ticket here so we can help.
We are always here for assistance.