Gevin今天结合The anatomy of a WordPress theme这篇文章,和大家一起剖析WordPress主题的结构。原文作者用图文形式,分别从网站外观、页面组成和后台文件三个方面,形象的向大家展示了WordPress的架构,下面Gevin和大家一起分析WordPress是如何架构的。
Query post or page
Start Loop //循环开始
the_title (outputs the title of the post) //标题
the_excerpt (outputs the post excerpt) //摘要
the_content (outputs the full post content) //内容
the_category (outputs the post categories) //目录
the_author (outputs the post author) //作者
the_date (outputs the post date) //日期
other tags (there is a variety of other tags you can use in the loop) //标签
endwhile; //结束循环
Exit the loop //退出循环
WordPress的后台文件