如何为yoast seo插件wordpress中的元字段创建自定义变量

问题描述:

我想为yoast seo设置中要使用的元字段创建%% title %%变量。如何为yoast seo插件wordpress中的元字段创建自定义变量

请指导我如何能做到这一点

+0

看起来你需要这样的东西'%% cf_ %%'。我建议阅读[Yoast搜索引擎优化:标题和元模板变量](https://kb.yoast.com/kb/yoast-wordpress-seo-titles-metas-template-variables/) – Frits

+0

@Frits这已经奏效。谢谢 –

您可以通过在SEO标题场使用%%cf_<custom-field-name>%%自订目标元场。

这里的所有可用变量对Yoast参考:

Yoast SEO: Titles & Metas template variables

下面是它应该是什么样子的例子:

SEO Title with Custom Meta Field