Rank Math Issues
This topic contains 11 replies, has 4 voices, and was last updated by Tristan O’Donnell 4 years, 11 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
February 20, 2020 at 10:05 pm #531493
Hi,
I’m trying to work out the best way to work with Rank Math and have discovered a few issues.
Since installing Rank Math I enabled the GD overwrite option for metas & titles but have noticed the following:
Events are being duplicated in Search Console
My category pages are beginning to be indexed as FAQ pages
The sitename suffix is either being replaced by or having Attractions in Sussex added to it, this varies depending on the search result. I have no idea where it is getting this from as Attractions is a category but in Sussex is not in the category title.I’m wondering if it is best to not enable the overwrite but then how do I instruct Rank Math to work with GD pages such as locations, do I SEO the GD location page or only SEO the actual locations? Can it even work with them?
Setting up Rank Math Titles & Metas I can use %customfield(field-name)% variable but what should I use for location for example as the field name, is it simply the GD variable such as in_location_city?
Thanks,
Tristan.
February 21, 2020 at 8:22 am #531532Hi Tristan,
Thanks for your post. We would need to inspect the issue before we could assist you further with this. Do you have a link to share and screenshots?
February 23, 2020 at 1:25 am #531757This reply has been marked as private.February 23, 2020 at 1:36 am #531762This reply has been marked as private.February 23, 2020 at 9:53 pm #531857Please also see this thread:
https://wpgeodirectory.com/support/topic/google-search-console-errors/#post-524196
February 24, 2020 at 7:14 am #531884Hi Alex,
Thanks, that appears to deal with the duplicate event schema issue but before I go ahead and add that, what about the other issues? I don’t really want to fix bits if on the whole Rank Math doesn’t work with GD.
Thanks
Tristan.
February 25, 2020 at 6:24 am #532086Hi Tristan,
Please try PHP snippet provided at here :
https://wpgeodirectory.com/support/topic/google-search-console-errors/#post-524196Let us know how it goes.
Regards,
KiranFebruary 25, 2020 at 10:52 pm #532250Hi Kiran,
Thanks for that but I am also trying to establish if I can use GD variables in Rank Math and if so how do I go about that?
Rank Math has an option for custom variables %customfield(field-name)%, can this be used for GD variables and if so what field name would I need to input ie. for %in_location_city%, would it simply be in_location_city or is setting up custom variables more complicated than that?
I want to make sure Rank Math is worth using with GD before I go ahead and make any changes. If I can’t use Rank Math effectively with GD then I won’t continue using it and the other issues will be irrelevant.
Thanks,
Tristan.
February 28, 2020 at 1:41 pm #532760Hi Tristan,
To render GD variables used in Rank Math setting use following snippet.
function gd_snippet_rank_math_replacements( $replacements, $args ) { if ( ! empty( $replacements ) ) { $_replacements = $replacements; foreach ( $replacements as $key => $value ) { if ( strpos( $key, '%%' ) === 0 && empty( $value ) ) { $replacements[ $key ] = GeoDir_SEO::replace_variable( $key ); } } } return $replacements; } add_filter( 'rank_math/replacements', 'gd_snippet_rank_math_replacements', 20, 2 );
Rank Math and GD has on SEO variable structure & usage. GD listings pages are not accessible to public so it has not option to listing owner to set SEO for listings. So we have setup our own meta settings to apply dynamically to GD pages.
We are checking and enhancing SEO usage for GD pages so GD & Rank Math integration works in a best way.
Regards,
KiranMarch 7, 2020 at 3:16 am #534125Hi Kiran,
Thanks for that. Just to clarify, that will allow me to use GD variables in Rank Math? So Rank Math will be the primary SEO not selecting GD to overwrite Rank Math? If so, what variables can I insert into Rank Math, do I just insert the GD variables as the custom Rank Math variable?
I’m not so much worried about individual listings as I moderate all submissions. I’m more concerned about generic SEO such as categories and location pages. When using GD SEO I can apply location variables in the meta title and descriptions, I want to achieve this using Rank Math, if possible.
Thanks,
Tristan.
March 11, 2020 at 6:17 am #534796Hi Tristan,
Snippet provided in my previous post will help to render GD variables used in Rank Math SEO. Did you tried it?
You can try this even without switching GD SEO. Try same GD variables in in Rank Math SEO. Ex: %%location_single%%
Let us know how it goes.
Thanks,
KiranMarch 14, 2020 at 12:36 pm #535197Thanks Kiran,
All appears to be working well.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket