常用函数-get_archive_template()2009-04-22 常用函数-get_archive_template() 说明 在当前模板或父模板中检索存档模板路径 用法 <?php get_archive_template() ?> 参数 无 返回的值 (字符串) 返回...
常用函数-get_query_template()2009-04-22 常用函数-get_query_template() 说明 不用扩展名检索文件路径。 该函数可不检查文件扩展名而快速检索文件路径。若文件存在,函数也可以用locate_template()查看父模板。如果不使用其他get_*_tem...
常用函数-get_theme_root_uri()2009-04-22 常用函数-get_theme_root_uri() 说明 检索 主题 目录的URI。 没有结尾斜线。 用法 <?php get_theme_root_uri() ?> 参数 无 返回的...
常用函数-get_theme_root()2009-04-22 常用函数-get_theme_root() 说明 检索主题 目录的路径。 没有结尾斜线。 用法 <?php get_theme_root() ?> 参数 无 返回的值 (字符串) 主题路径 示例 ...
常用函数-get_current_theme()2009-04-22 常用函数-get_current_theme() 说明 检索当前主题目录 用法 <?php get_template_directory() ?> 参数 无 返回的值 (字符串) 模板目录路径 示例 当...
CSS2009-04-20 CSS WordPress非常依赖于CSS的表现样式。对WordPress 1.5版本的主题介绍完毕后,用户的页面布局选项激增。如今在WordPress中改变网站外观比以往任何时候都容易,用字段可以更大程度地帮助用户创建自己的主题以及页面...
常用函数-get_themes()2009-04-18 常用函数-get_themes() 说明 在主题目录中检索含有主题数据的 主题列表。 若主题不具备父主题且丢失style.css或index.php文件,将该主题视为以损坏。若主题具备父主题但丢失style.css文件,将该主...
常用函数-get_theme()2009-04-18 常用函数-get_theme() 说明 检索 主题 信息。 用法 <?php get_theme( $theme ) ?> 参数 $theme (字符串)(必需)主题名称 默认值:None 返回的值 ...
常用函数-get_theme_data()2009-04-18 常用函数-get_theme_data() 说明 返回关于主题文件信息的数组 用法 <?php $theme_data = get_theme_data($theme_filename); ?> 示例 用法 从...
常用函数-get_template_directory_uri()2009-04-18 常用函数-get_template_directory_uri() 说明 检索模板 目录URI 用法 <?php get_template_directory_uri() ?> 参数 无 返回的值 (字符串) ...