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
Lets go through all the most important WordPress files and folders one by one.
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 directoryWoopoo's Tip
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.
All themes you install from Dashboard eventually goes to wp-content/themes folder.
All installed plugins resides in wp-content/plugins folder.
All files you upload from WordPress dashboard media library go to wp-content/uploads folder.
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.
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.
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.
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.
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