https://codex.wordpress.org/zh-cn:%E5%87%86%E5%A4%87%E4%BD%BF%E7%94%A8_WordPress
做好计划
All good websites come from a good plan. Sounds redundant, but it’s true. If you want to create a good and solid website, you need a good and solid plan. I know it’s hard to do, and I know you want to keep poking and playing with this exciting program, but it is time to take a break away from your computer and turn to the old paper and pen. That’s right, we’re going back in time to when people actually wrote things down.
On a piece of notebook paper, or whatever is lying around, describe your site. Take five to twenty minutes to come up with a purpose for your site, or better yet, call it your Mission Statement.
Answer the following questions:
- What am I going to do with this? 我该怎么办
- Who is going to read this? 谁会用这个网站
- What kinds of information will I be posting? 我会发布什么类型的文章
- Why am I doing this? 我为什么要这样做
- Who am I doing this for? 我这么做为了谁
- How often am I going to be posting and adding information? 我多久发布和添加一次信息
关于添加函数到 functions.php 还是一个单独插件中的提醒: 你有时会发现需要在多个主题中使用相同的函数,在这种情形下,建议开发主题插件 plugin。functions.php仅对特定的主题生效,而插件视所有的主题一致。
引用模板中的文件
当在同一个主题中引用其他文件时,避免使用硬编码的 URLs 和文件路径。请使用 bloginfo() 引用 URL 和文件路径:参看从模板中引用文件.