Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello.
I have created a text field, that i wan't to use as the meta description instead of the default body.
[node:summary] only take wats in the body field.
I tried [node:field_newtextfield] But search engines don't se this.
Does anybody have a solution to this?
Comments
Comment #1
DamienMcKennaHave you verified the meta tags are displayed correctly in the page source? Remember that search engines will sometimes ignore the meta tags and make up their own minds on what constitutes the page description.
Comment #2
AlfTheCat CreditAttribution: AlfTheCat commentedAs this issue #1461856: Can not use custom fields on meta tags. was closed and this issues seems to have the same problem, I'm updating this one as follows.
I'm trying to use custom fields data in metatags for specific node types. My approach is as follows:
.
Please note that [node:title] is also not accepted, even after I save and re-edit the context.
Hope this helps :)
Comment #3
AlfTheCat CreditAttribution: AlfTheCat commentedComment #4
DamienMcKennaThis is ultimately a duplicate of #1838554: Either enable entity tokens in Context, or disable those tokens in Context.