在WordPress中显示总注册用户数量2009-04-28 要显示注册用户数量的话,只要在模板中添加如下代码: <?php $users = $wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->users&...
WordPress中的meta标签2009-04-27 WordPress中的meta标签 搜索引擎浏览博客时会搜集博客名称、文章标题、内容以及meta标签(如说明或关键字等)等信息。搜索引擎比较各个版块内的信息,然后根据信息的匹配程度为博客站点排名。下面将详细介绍如何最大程度地利...
常用函数-get_single_template()2009-04-27 常用函数-get_single_template() 说明 检索当前模板或父模板的single模板路径 用法 <?php get_single_template() ?>...
常用函数-get_search_template()2009-04-27 常用函数-get_search_template() 说明 检索当前模板或父模板的搜索模板路径 用法 <?php get_search_template() ?> ...
运行中的The Loop(主循环)2009-04-25 运行中的The Loop(主循环) 简介 “The Loop”是一个涉及WordPress主要进程的术语。用户可以在模板文件中使用The Loop为访问者显示文章。不使用The Loop也可以制...
常用函数-get_date_template()2009-04-25 常用函数-get_date_template() 说明 检索当前模板或父模板的时间模板路径。 用法 <?php get_date_template() ?> 参数...
常用函数-get_home_template()2009-04-25 常用函数-get_home_template() 说明 检索当前模板或父模板的home模板路径。 函数退回'index.php'前尝试定位'home.php'。 用法 ...
常用函数-get_page_template()2009-04-25 常用函数-get_page_template() 说明 检索当前模板或父模板的页面模板路径。 函数首先尝试在'_wp_page_template'页面meta数据中寻找文件。若文件存在且不为空,...
常用函数-get_paged_template()2009-04-25 常用函数-get_paged_template() 说明 检索当前模板或父模板的页面式模板路径 用法 <?php get_paged_template() ?> ...
小窥WordPress2.8插件管理界面2009-04-25 WordPress2.8插件管理页面将对用户行为进行保存,我们可以看到插件表格的上方多了"All", "Active", "Recently Active"等导航链接。此外,...
全球最有才的10个域名2009-04-24 最好的域名在茫茫网络中消失地无影无踪。 人们需要发挥更多创意来构思域名。 用国家码顶级域名(ccTLD)注册独特域名就是一个极好的方法,这也被称为域名切割(Domain Hack)。 随着国家顶级域名越来越多地被跨国公司而不是本土人士...