Rank Math overrides SEO extension meta tags

Hello,

I purchased the SEO Extension and I’m using it on my website together with Rank Math.

I’ve noticed that the meta title and schema settings from the SEO Extension are not being applied, because Rank Math seems to override them.

When I check the page source code, I only see the Rank Math title and description, which use only the listing title, instead of the dynamic format (e.g. %listing.categories% %listing.title%). The same issue happens with vendors as well.

I also tried configuring the meta titles in Rank Math (for listing type and vendor type) to match what the SEO Extension generates, but it still doesn’t work.

Would it be better to use only the SEO Extension and disable Rank Math? Has anyone else faced and solved this issue?

Thank you

1 Like

Hi,

RankMath does override some SEO-related data. If you’re using the HivePress SEO extension alongside RankMath, we recommend using RankMath to manage meta titles, while using the HivePress SEO plugin primarily for schema markup and social sharing settings.

Schema properties based on HivePress extensions are mapped automatically, but you can also manually map custom attributes as needed.

P.S. Please note that we have to move this topic to the SEO plugin forum category. Since it’s related to a premium extension, the forum category is restricted — please add the license key to the account settings or consider renewing support if you still need assistance related to the premium themes or extensions Renew Support | HivePress

Hi @kseniia thank you. But if you use RankMath it will override the Seo Extension.

I have purchased all extensions maybe in 2022 or 2023, I have the license code but didnt renew support.
Both are necessary for this question?

Cant this be in the community forum?

Thank you

Sorry for the confusion, yes you can use Rank Math but it’s meta title and description settings may override the SEO extension one. This is expected behavior because meta settings are more advanced in Rank Math, while the SEO extension is useful mostly for Schema mapping.

If you need to use the SEO extension settings (meta titles and description generated based on attributes), please check if it’s possible to disable meta titles and descriptions in Rank Math (for the Listing post type), if not I can check if there’s a code snippet for this.

Thnak you @ihor

Rank math does not allow to disable meta titles only for the listing type. If you disable everything, blog posts also get affected.

Chatgpt created this code snippet for me to keep blog posts with rankmath and use seo extensions for listings and vendors. Is it correct?

add_filter( 'rank_math/frontend/disable_title', function( $disable ) {
    if ( is_singular( 'hp_listing' ) || is_singular( 'hp_vendor' ) ) {
        return true; // Desativa o título/meta do Rank Math para listings e vendors
    }
    return $disable;
});

add_filter( 'rank_math/frontend/disable_description', function( $disable ) {
    if ( is_singular( 'hp_listing' ) || is_singular( 'hp_vendor' ) ) {
        return true; // Desativa a meta description do Rank Math para listings e vendors
    }
    return $disable;
});

Please try this code snippet instead:

add_filter(
	'rank_math/frontend/title',
	function ( $text ) {
		if ( is_singular( 'hp_listing' ) || is_singular( 'hp_vendor' ) ) {
			return;
		}

		return $text;
	}
);

add_filter(
	'rank_math/frontend/description',
	function ( $text ) {
		if ( is_singular( 'hp_listing' ) || is_singular( 'hp_vendor' ) ) {
			return;
		}
		
		return $text;
	}
);

Thank you @ihor

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.