-
Hello! First of all, thank you for your fascinating plugin.
Now my problem.
I have configured Rankmath so that in custom post type a metadescription appears adapted with fields like %title% etc, but it does not work.
The extract still appears.
It may be due to a conflict with the YASR plugin, of review content, although this is only a guess. For design and logistic reasons, all the extracts of these custom post types include a YASR shortcode.
Can you give me a solution? Some script to force this?
Thank you very much.
-
Hello,
Thank you for contacting Rank Math today.
By default, this is how we are setting the Meta description. The priority is given to:
1) The Meta description value added in the Meta description field
2) The excerpt, if #1 is missing
3) The value from the Settings if #1 and 2 are missing.Looks like you want to use 3 after 1.
For that, please add the following filter to your theme’s functions.php file:
https://support.rankmath.com/ticket/disable-auto-generate-meta-description-if-excerpt-is-not-empty/#post-11266Hope that helps.
Thats work perfectly, Thank you very much Michael!
Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.
The ticket ‘Conflict in extract and metradescription’ is closed to new replies.