WordPress is so much user-friendly that you can run a blog without knowing how WordPress data handling works under the hood but getting a basic knowledge of which files and folders of WordPress are important is recommended to sort out any errors which may arise.

Understanding the WordPress directory and file structure including WordPress core files will give you more confidence in handling your blog at a higher level.

WordPress Default File Structure

wp-admin

wp-contents

wp-includes

index.php

.htaccess

robots.txt

wp-activate.php

wp-blog-header.php

wp-comments-post.php

wp-config.php

wp-config-sample.php

wp-cron.php

wp-links-opml.php

wp-load.php

wp-login.php

wp-mail.php

wp-settings.php

wp-trackback.php

xmlrpc.php

robots.txt is an optional file. See robots.txt explained for more information

Woopoo's Tip

Lets go through all the most important WordPress files and folders one by one.

wp-admin

WordPress wp-admin folder Introduction

WordPress wp-admin folder contains all the files necessary to run your backend i.e Dashboard. One most important file in wpadmin directory is admin.php which connects to the database and loads WordPress backend.

wp-admin folder location is on the root level of your blog normally public_html or www directory.

Securing wp-admin directory is crucial for WordPress security. see how to protect WordPress wp-admin directory

Woopoo's Tip

wp-content

WordPress wp-content folder Introduction

wp-content directory holds all your blog’s themes, plugins and uploads.

wp-content folder location is on the root level of your blog normally public_html or www directory.

E

All themes you install from Dashboard eventually goes to wp-content/themes folder.

E

All installed plugins resides in wp-content/plugins folder.

E

All files you upload from WordPress dashboard media library go to wp-content/uploads folder.

wp-includes

WordPress wp-includes folder Introduction

wp-includes folder contains a lot of files but the most important file here is functions.php. You can add additional functionality to your WordPress by writing your own functions and calling them in WordPress. Normally you don’t need to touch this folder.

wp-includes folder location is on the root level of your blog normally public_html or www directory.

index.php

WordPress index.php file Introduction

WordPress index.php file will show up your blog when someone visits your website. This file could be overridden by front-page.php or themes custom files.

WordPress index.php file location is root directory of your blog normally public_html or www directory.

.htaccess

WordPress .htaccess file Introduction

.htaccess is a wordpress configuration file and its main purpose is to define a way how the files will be served from root directory. It is also used to handle wordpress permalinks.

WordPress .htaccess file location is root directory of your blog normally public_html or www directory.

wp-config.php

WordPress wp-config.php file Introduction

This file is the backbone of your WordPress installation. Inside wp-config.php file is the vital information of your blog like database name, database username, database username password and it is the main file to connect WordPress with the database.

Conclusion:

Knowing the working of WordPress files and folders will open new doors for you to handle common WordPress problems for yourself. Even if you hire WordPress expert, you will have a better understanding what he is doing with your files.

Did we miss something?

Do you think if we missed something important, do let us know by using comments section below

Gimme a Share pleeeaase!

Pin It on Pinterest

Share This