Hello,
Thank you for contacting Rank Math and bringing your concern to our attention.
Could you please confirm if you are referring to not using Rank Math at all like the SEO meta box and other modules?
If you’re only excluding Rank Math to generate the meta tags on your site, you can use and customize this filter on your site:
add_action( 'wp_head', function(){
global $post;
if( $post->ID == 558){
remove_all_actions( 'rank_math/head' );
}}, 1 );
The post ID is 558
in the filter. Please update it with the actual post ID of the page.
And here’s a link to how to apply this to your site:
https://rankmath.com/kb/filters-hooks-api-developer/#adding-filters-and-hooks-in-rank-math-php
I hope that helps.
Thank you.
I do not want Rankmath to access one particular post at all. It is made out of a lot of spun content including the titles and metas and I can’t ad that because spun content doesn’t work with Rankmath. This content has its own SEO platform
Hello,
You can use the code shared by my colleague to remove our meta tags and use your own meta tags on the page.
If the filter doesn’t work for you please share a screencast of your setup so we can check and assist you further. You can use a tool like https://loom.com/
Looking forward to helping you.
Hi, I tried your method with no good results. Here is a 4-min video https://www.loom.com/share/8f2d6c60b0e64356b93c22204f344aed
Hello,
It seems like you have added the code outside/without the PHP tags. Please remove the code and use the one given below:
<?php
add_action( 'wp_head', function(){
global $post;
if( $post->ID == 558) {
remove_all_actions( 'rank_math/head' );
}}, 1 );
?>
Let us know how that goes. Looking forward to helping you.
Hello,
When you use that filter all the actions are removed and that includes the meta title that our plugin is responsible for adding to the website.
So, the report from that tool is accurate as the title
tag won’t be present on that page with this filter.
Don’t hesitate to get in touch if you have any other questions.
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.