本文最后更新于 2019年6月25日,距今已 2695 天,其中的信息可能已经发生变化,请注意甄别。 基本变量
| 变量 |
描述 |
| %%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>%% |
替换为一个自定义分类描述 |
本作品采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 进行许可
文章评论