朱纯树博客
VPS测评推荐网站
cloudacead cloudacead

WordPress主题开发常用模板名称和头部函数大全

最新wordpress交流群里很多朋友问我学习wordpress开发从哪里开始,该怎么学,这个真难倒我了,我都忘记我是怎么开始学习WordPress主题开发的,反正大概的就是先得学习html+css+js吧,然后php其实我自己都不懂,而且WordPress很多函数也都封装好了,直接拿来使用就行。

然后就是了解下WordPress主题的模板继承之类的吧,不懂模板继承规则的可以看下面这篇文章:

WordPress分类/页面/文章类型等模版继承规则和自定义方法

本站今天分享的这篇文章是给大家分享一些主题开发常用模板名称、常用标签和函数大全,希望能给在学习WordPress主题开发的朋友们一点帮助

基本模板文件

文件名 描述
style.css 主题样式文件
index.php 首页模板文件
header.php 头部模板文件
single.php 单篇文章模板文件
archive.php 存档/分类模板文件
searchform.php 搜索表单模板文件
search.php 搜索模板文件
404.php 404 模板文件
comments.php 留言模板文件
footer.php 底部模板文件
sidebar.php 侧边栏模板文件
page.php 静态页面模板文件
front-page.php 静态首页模板文件
tag.php 标签存档模板文件
category.php 分类存档模板文件

常用主题头部函数

函数名 描述
站点根链接
文章或者静态页面标题
站点名称
站点描述
样式文件所在目录
样式文件链接
pingback 链接
模板文件所在目录链接
WordPress 版本
atom 链接
rss2 链接
网站根链接
html 版本
字符集

文章来源于互联网:wordpress主题开发常用模板名称和头部函数大全

赞(0) 打赏
未经允许不得转载:VPS测评推荐网站 - 朱纯树博客 » WordPress主题开发常用模板名称和头部函数大全

评论 23

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #30

    It’s amazing to go to see this web site and reading the views of all friends concerning this post, while I am
    also eager of getting experience.

  2. #29

    Hello would you mind letting me know which web host you’re utilizing?
    I’ve loaded your blog in 3 different web browsers and I must
    say this blog loads a lot faster then most.

    Can you suggest a good hosting provider at a honest price?

    Kudos, I appreciate it!

  3. #28

    Hello very cool blog!! Guy .. Beautiful .. Superb ..
    I will bookmark your blog and take the feeds also? I’m satisfied to find
    so many helpful info right here in the submit, we want develop extra
    strategies on this regard, thank you for sharing.
    . . . . .

  4. #27

    I was suggested this web site via my cousin. I’m now not certain whether or not this publish is written by him as no one else realize
    such unique about my difficulty. You are incredible!

    Thank you!

    tinyurl.com1周前 (08-03)回复
  5. #26

    Do you mind if I quote a couple of your articles as long as I provide credit and sources back to your blog?
    My blog is in the very same niche as yours and my users would truly benefit from a lot of the
    information you provide here. Please let me know if this ok
    with you. Thank you!

    tinyurl.com1周前 (08-02)回复
  6. #25

    Hello very nice web site!! Man .. Beautiful ..
    Wonderful .. I will bookmark your web site and take the feeds also?
    I am satisfied to search out numerous helpful
    information right here within the submit, we need work out extra strategies in this regard, thanks for sharing.
    . . . . .

    tinyurl.com2周前 (07-28)回复
  7. #24

    Hi there every one, here every person is sharing these know-how, therefore it’s fastidious to read this weblog, and I used to go to see this webpage daily.

    http://tinyurl.com2个月前 (06-09)回复
  8. #23

    Hi there! I know this is kinda off topic but I was wondering which blog platform are you using for this site?
    I’m getting fed up of Wordpress because I’ve had problems with hackers and I’m looking at options for another platform.
    I would be awesome if you could point me in the direction of a good platform.