Repository navigation
Emit one meta description, not two - #26
Merged
Merged
Conversation
The theme printed its own description and Rank Math printed a second from stored post meta. Google picks between them, and on both BRABUS guides the stored copy is the old 'Discover the 2025 price...' text, so the price-led rewrite only won half the time. Theme now defers to Rank Math when it is active, and the guides feed their copy through rank_math/frontend/description.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Root cause of the split description on both BRABUS guides.
Verified in production HTML: tag #1 sits under the theme's
<!-- SEO Meta Tags -->comment, tag #2 under<!-- Search Engine Optimization by Rank Math -->and carries stored post meta ('Discover the 2025 price of G Wagon Brabus...').Changes:
rank_math/frontend/description, which previously had no filterVerify: exactly one meta description per page, matching og:description.