AUTOSAVE_INTERVAL
WP_POST_REVISIONS
// 添加菜单
register_nav_menus
// 特色图像
add_theme_support('post_thumbnails')
// 文章格式
add_theme_support('post-formats',array('aside','image','video','quote','link','gallery','status','autdio','chat'))
// 自定义页头
add_theme_support('custom-header')
//自定义背景
add_theme_support('custom-backgrund')
主模版:
index.php 首页模版
home.php 首页模版
single.php 文章
page.php
archive.php
search.php
404.php
comment.php
二级模版:
front-page.php 首页模版
author.php
date.php
tag.php
category.php
taxonomy.php
attachment.php
single-post.php 文章
引入模版
页头, header.php -> get_header();
页脚 footer.php -> get_footer();
侧边栏 sidebar.php -> get_sidebar();
搜索框 searchform.php -> get_search_form();
评论 comments.php ->comments_template();
自定义的模版 xxx.php -> get_template_part();
网友评论