Yoast SEO 是目前 WordPress 使用人数最多的 SEO 搜索优化插件之一,功能非常完善,而且会根据Google搜索优化规则更新进行及时的优化调整。这里列举一些变量参数,以后用到的时候就不用再找了。
基本变量
| 变量 | 描述 |
|---|---|
| %%date%% | 替换为文章/页面发布日志 |
| %%title%% | 替换为文章/页面标题 |
| %%parent_title%% | 替换为当前文章父级页面的标题 |
| %%sitename%% | 站点名称 |
| %%sitedesc%% | 站点描述 |
| %%excerpt%% | 替换为文章/页面引用(如果不存在则自动生成) |
| %%excerpt_only%% | 替换为文章/页面引用(禁止自动生成) |
| %%tag%% | 替换为当前的标签 |
| %%category%% | 替换为当前文章的分类目录(使用逗号分隔) |
| %%primary_category%% | Replaced with the primary category of the post/page |
| %%category_description%% | 替换为当前分类的描述 |
| %%tag_description%% | 替换为当前标签的描述 |
| %%term_description%% | 替换为当前分类描述 |
| %%term_title%% | 替换为分类名 |
| %%searchphrase%% | 替换为当前搜索词 |
| %%sep%% | 在你主题wp_title()中定义了分隔符 |
高级变量
| 变量 | 描述 |
|---|---|
| %%pt_single%% | 替换为单标签文章类型 |
| %%pt_plural%% | 替换为多标签文章类型 |
| %%modified%% | 替换为文章/页面修改时间 |
| %%id%% | 替换为文章/页面ID |
| %%name%% | 替换为文章/页面作者的昵称 |
| %%user_description%% | 替换为文章/页面作者的自传内容 |
| %%userid%% | 替换为文章/页面作者的用户ID |
| %%currenttime%% | 替换为当前时间 |
| %%currentdate%% | 替换为当前日期 |
| %%currentday%% | 替换为当前的日 |
| %%currentmonth%% | 替换为当前的月份 |
| %%currentyear%% | 替换为当前年份 |
| %%page%% | 替换为当前页码(例如:第2页 – 共4页) |
| %%pagetotal%% | 替换为当前分页数量 |
| %%pagenumber%% | 替换为当前页码 |
| %%caption%% | 附件标题 |
| %%focuskw%% | 替换为文章的关键词 |
| %%term404%% | 替换为造成404错误的连接 |
| %%cf_<custom-field-name>%% | 替换为文章的自定义参数值 |
| %%ct_<custom-tax-name>%% | 替换为文章的自定义分类,逗号分隔 |
| %%ct_desc_<custom-tax-name>%% | 替换为一个自定义分类描述 |
有问题可在下方评论留言,或关注“大超小志”微信公众号留言。
版权声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。





留言评论
如需留言或评论,请在微信中打开此页面。