Wordpress源码文件详解
2022-07-29 10:13:20
112
{{single.collect_count}}

我们在安装wordpress网站,会发现根目录下有很多的文件,这些文件都有什么用呢?今天我给大家来讲解一下。

默认的WordPress文件夹详解
wp-admin 是wordpress的后台文件。

wp-includes 是wordpress的核心文件及一些第三方框架。

wp-content\plugins 是wordpress的插件目录文件。

wp-content\themes 是wordpress的主题目录文件。

wp-content\uploads 是wordpress上传储存附件的地方。

wp-content\languages 是wordpress的语言包储存位置。

根目录下的 wp-config.php 是wordpress的配置文件。

关于WordPress主题的文件夹详解
index.php(主体)

header.php(头部)

footer.php(底部)

sidebar.php(侧边栏)

404.php(未找到页面内容)

category.php(分类内容文件)

author.php(作者内容文件)

page.php(页面内容文件)

search.php(搜索内容显示文件)

searchform.php(搜索框文件)

single.php(单页内容文件)

style.css(样式文件)

functions.php(主题函数文件)

thumbnail.php (缩略图支持文件)

tag.php(标签内容文件)

archives.php 归档

本文转自六艺开源:阅读原文

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}