2-Blog info tags 博客信息标签
- bloginfo <?php bloginfo($name); ?>
- 输出博客信息,$name变量有.
-
name = Testpilot description = Just another WordPress blog admin_email = admin@example url = http://example/home wpurl = http://example/home/wp stylesheet_directory = http://example/home/wp/wp-content/themes/child-theme stylesheet_url = http://example/home/wp/wp-content/themes/child-theme/style.css template_directory = http://example/home/wp/wp-content/themes/parent-theme template_url = http://example/home/wp/wp-content/themes/parent-theme atom_url = http://example/home/feed/atom rss2_url = http://example/home/feed rss_url = http://example/home/feed/rss pingback_url = http://example/home/wp/xmlrpc.php rdf_url = http://example/home/feed/rdf comments_atom_url = http://example/home/comments/feed/atom comments_rss2_url = http://example/home/comments/feed charset = UTF-8 html_type = text/html language = en-US text_direction = ltr version = 2.9.2
- bloginfo_rss <?php bloginfo_rss($name); ?>
- 除该标签将输出结果中的标记删除以供WordPress聚合订阅使用外,其它与bloginfo()完全相同.
- get_bloginfo <?php echo get_bloginfo($name); ?>
- 返回博客信息的值.
- get_bloginfo_rss <?php echo get_bloginfo_rss($name); ?>
- 同上.
3-Lists & Dropdown tags 列表&下拉菜单标签
- wp_dropdown_categories <?php wp_dropdown_categories($args); ?>
- 输出分类的下拉菜单信息,$args变量有参见 http://codex.wordpress.org/Template_Tags/wp_dropdown_categories
- wp_dropdown_pages <?php wp_dropdown_pages($args); ?>
- 输出页面的下拉菜单信息,$args变量参见 http://codex.wordpress.org/Template_Tags/wp_dropdown_pages
- wp_dropdown_users <?php echo wp_dropdown_users($args); ?>
- 输出页面的下拉菜单信息,$args变量参见 http://codex.wordpress.org/Template_Tags/wp_dropdown_users
- wp_get_archives <?php wp_get_archives($args); ?>
- 输出归档的列表,$args变量参见 http://codex.wordpress.org/Template_Tags/wp_get_archives
- wp_list_authors <?php wp_list_authors($args); ?>
- 输出作者的列表,$args变量参见 http://codex.wordpress.org/Template_Tags/wp_list_authors
- wp_list_bookmarks <?php wp_list_bookmarks($args); ?>
- 输出书签(链接)的列表,$args变量参见 http://codex.wordpress.org/Template_Tags/wp_list_bookmarks
- wp_list_categories <?php wp_list_categories($args); ?>
- 输出分类的列表,$args变量参见 http://codex.wordpress.org/Template_Tags/wp_list_categories
- wp_list_comments <?php wp_list_comments($args); ?>
- 输出评论的列表,$args变量参见 http://codex.wordpress.org/Template_Tags/wp_list_comments
- wp_list_pages <?php wp_list_pages($args); ?>
- 输出页面的列表,$args变量参见 http://codex.wordpress.org/Template_Tags/wp_list_pages
- wp_page_menu <?php wp_page_menu($name); ?>
- 输出包含页面的菜单信息,$args变量参见 http://codex.wordpress.org/Template_Tags/wp_page_menu