wordpress插件Yoast SEO 变量汇总,自动生成标题和描述方法

wordpress有许多插件,为了让网站更好的被搜索引擎识别和收录,我们会安装许多功能强大的插件,其中有一个功能比较强大的插件,Yoast SEO插件可以自定义wordpress的标题和关键词描述,同时他也支持自动抓取文章第一段生成描述,还有生成sitemap网站地图。下面是这个插件的变量汇总,我们生成文章页面描述的时候只需要输入这个%%excerpt%%就行了。
基本变量
变量 描述
%%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>%% 替换为一个自定义分类描述

版权声明:文章由广州SEO博客整理侵删!转载请注明:诚哥博客 » wordpress插件Yoast SEO 变量汇总,自动生成标题和描述方法

赞 (3)