WP函数记录
wp_head();
bloginfo(‘home’);
bloginfo(‘name’); // 默认
bloginfo(‘url’); == echo get_option(‘home’);
bloginfo(’stylesheet_url’);
have_posts();
while(have_posts()):the_post();
the_title();
the_ID();
the_author();
the_category(‘, ‘);
the_permalink();
the_content();
comments_popup_link();
endwhile;
posts_nav_link(“between”, “prev”, “next”);
previous_post_link(“Prev: %link”);
next_post_link(“Next: %link”);
comments_template();
wp_list_pages(“depth=3&title_li=
“);
wp_list_cats(“sort_column=name&optioncount=1&hierarchical=0″);
wp_get_archives(“type=monthly”);
get_calendar();
wp_specialchars($s, 1); // searchform
wp_register();
wp_loginout();
wp_meta();
get_header();
get_sidebar();
get_footer();
link_pages(“
Pages:“, “
“, “number”); 显示子页面
edit_post_link(“
“);
Hi,
wordpress.rssbbs.com – da best. Keep it going!
Thank you
[回复]