Rank Math Issues

This topic contains 11 replies, has 4 voices, and was last updated by  Tristan O’Donnell 4 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #531493

    Tristan O’Donnell
    Full Member
    Post count: 57

    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.

    #531532

    Kor
    Moderator
    Post count: 16516

    Hi 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?

    #531757

    Tristan O’Donnell
    Full Member
    Post count: 57
    This reply has been marked as private.
    #531762

    Tristan O’Donnell
    Full Member
    Post count: 57
    This reply has been marked as private.
    #531857

    Alex Rollin
    Moderator
    Post count: 27815
    #531884

    Tristan O’Donnell
    Full Member
    Post count: 57

    Hi 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.

    #532086

    Kiran
    Moderator
    Post count: 7069

    Hi Tristan,

    Please try PHP snippet provided at here :
    https://wpgeodirectory.com/support/topic/google-search-console-errors/#post-524196

    Let us know how it goes.

    Regards,
    Kiran

    #532250

    Tristan O’Donnell
    Full Member
    Post count: 57

    Hi 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.

    #532760

    Kiran
    Moderator
    Post count: 7069

    Hi 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,
    Kiran

    #534125

    Tristan O’Donnell
    Full Member
    Post count: 57

    Hi 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.

    #534796

    Kiran
    Moderator
    Post count: 7069

    Hi 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,
    Kiran

    #535197

    Tristan O’Donnell
    Full Member
    Post count: 57

    Thanks Kiran,

    All appears to be working well.

Viewing 12 posts - 1 through 12 (of 12 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket