-
Hi,
on a CPT I obligatory need to use the value of an ACF field as content for “Meta Description” (and not the value of the native CPT excerpt field).
By default in Rank Math “Title & Meta”, in the settings panel of this very CPT, I do have my “Meta Description” field.
Situation 1 – %excerpt%
=======================
If I am using %excerpt% and there is a value in excerpt field => I off course get the excerpt content as Meta Description => perfectly fineSituation 2 – %customfield(leistungen_-_hero_subline)%
======================================================
But since here on this client site, we are using (for several good reasons) the value of the excerpt field intentionally NOT as a SEO Meta Description, but for another usecase. Because of this we want to use the value of an ACF Intro Text field “%customfield(leistungen_-_hero_subline)%” as a value for the SEO Meta Description … so we would like to achieve:
1) WordPress CPT Excerpt Field => must not be used for Meta Description
2) ACF Intro Text Field => must be used for Meta Description on this siteProblem:
Since we do have content in the CPT excerpt field, Rank Math ALWAYS pulls the value of the excerpt field for the Meta Description, even if I add “%customfield(leistungen_-_hero_subline)%” in the Settings Panel, Meta Description field.Only if the native excerpt field is empty, Rank Math correctly pulls the content of my ACF field. But as soon as there is content in the native excerpt field, Rank Math ignores my ACF field content for the meta description.
Is there a quick solution for this bug?
Thanks and best regards
Michael
The ticket ‘BUG | ACF Fields do not work for Meta Description’ is closed to new replies.