WordPress is built using PHP, HTML, CSS, JavaScript and a database. Its files and folders work together to display pages, manage content, load themes and provide additional functionality through plugins.
WordPress file structure is the organization of files and directories that make a WordPress website work. Each folder contains files for specific responsibilities.
wp-content/themes/ directory.
When you install a plugin, its files are generally stored
inside wp-content/plugins/.
A standard WordPress installation contains several important folders and files. Your installation may include additional files depending on the hosting environment, plugins and configuration.
wordpress/
│
├── wp-admin/
│
├── wp-content/
│ ├── plugins/
│ ├── themes/
│ ├── uploads/
│ └── languages/
│
├── wp-includes/
│
├── index.php
├── wp-config.php
├── wp-load.php
├── wp-login.php
├── wp-settings.php
├── wp-blog-header.php
├── wp-cron.php
├── xmlrpc.php
├── readme.html
└── license.txt
This is a simplified illustration of a typical WordPress installation, not a complete list of every file.
The wp-admin directory contains many files used
by the WordPress administration area. These files support
dashboard operations such as managing posts, pages, users
and settings.
wp-admin. Doing so can break the administration
area or create security problems.
The wp-content directory is one of the most important
directories for website customization. It normally contains
themes, plugins and uploaded media.
wp-content/
│
├── plugins/
│ ├── example-plugin/
│ └── another-plugin/
│
├── themes/
│ ├── example-theme/
│ └── example-child-theme/
│
├── uploads/
│ ├── 2026/
│ │ ├── 01/
│ │ └── 02/
│
└── languages/
The folder names shown are examples. The actual directory contents depend on the website's setup.
The wp-content/plugins/ directory stores plugin
files. Plugins extend WordPress with additional features.
A plugin must be compatible and appropriately configured. Simply placing files in this folder does not guarantee that a plugin will work.
The wp-content/themes/ directory stores WordPress
theme files. A theme controls much of the website's presentation,
including templates, styles and design features.
my-business-theme/
│
├── style.css
├── functions.php
├── index.php
├── header.php
├── footer.php
├── single.php
├── page.php
└── assets/
├── css/
├── js/
└── images/
This is an illustrative classic-theme structure.
Block themes may instead use files such as
theme.json and HTML templates inside
a templates/ directory.
The wp-content/uploads/ directory commonly stores
media uploaded through the WordPress Media Library, such as
images, PDFs and other supported files.
uploads/
│
├── 2026/
│ ├── 01/
│ │ ├── company-logo.png
│ │ └── course-image.jpg
│ │
│ └── 02/
│ └── brochure.pdf
WordPress commonly organizes uploads by year and month when that setting is enabled. Other configurations may use a different arrangement.
The wp-includes directory contains many WordPress
core libraries, functions and classes used throughout the system.
wp-includes. These files are part of WordPress core.
Use supported themes, plugins and hooks for customization.
| File | Purpose |
|---|---|
index.php |
Provides an important entry point for loading WordPress. |
wp-config.php |
Contains site configuration, including database connection settings and security keys. |
wp-load.php |
Loads the WordPress environment. |
wp-login.php |
Handles the standard WordPress login interface and related authentication requests. |
wp-settings.php |
Initializes much of the WordPress environment. |
wp-blog-header.php |
Loads the WordPress environment and initiates the main query for front-end requests. |
wp-cron.php |
Runs scheduled WordPress tasks when triggered. |
xmlrpc.php |
Provides the legacy XML-RPC interface when enabled and available. |
The wp-config.php file contains important
configuration values for WordPress. It commonly includes
database connection details and security keys.
<?php
define('DB_NAME', 'wordpress_db');
define('DB_USER', 'your_database_user');
define('DB_PASSWORD', 'your_database_password');
define('DB_HOST', 'localhost');
// Other WordPress configuration values follow.
This is a simplified illustration, not a complete production configuration. Use the correct credentials provided by your development or hosting environment.
WordPress uses both files and a database. They serve different purposes.
For a complete backup, you generally need both the relevant WordPress files and a database backup. Back up any additional external storage or configuration your website depends on.
The method depends on whether WordPress runs on your computer or on a hosting server.
C:\xampp\htdocs\wordpress\
Your exact path may differ based on where you installed
XAMPP and WordPress.
Complete these tasks using your local or test WordPress installation:
wp-admin folder.wp-content and locate the plugins folder.wp-includes.wp-config.php without sharing its contents.wp-admin supports the administration area.wp-content contains themes, plugins and uploads.wp-includes contains WordPress core libraries and functions.wp-config.php contains important site configuration.Choose the correct answer for each question.