Search for WordPress frontend and backend and you will find short definitions that stop just when the useful part starts. The practical question is not only what each side means. It is which side you should change when you want something different on your site. This guide explains the WordPress frontend and backend in plain terms, with seven differences, a request walk-through and a table of where customization belongs.

Quick answer: In WordPress, the frontend is the public website visitors see, built by your theme, templates and the block editor’s output. The backend is everything behind it: the wp-admin dashboard, PHP code, the database and server settings. The backend stores content and the frontend displays it.
In this guide
What the WordPress frontend and backend mean
The WordPress frontend is the part of your site that anyone can load in a browser without logging in. It is the layout, colors, fonts, menus, images and text on every page.
The backend has two meanings, and mixing them up causes most of the confusion.
- The admin backend. This is the dashboard at
/wp-admin/, where you log in to write pages, upload media, install plugins and change settings. Non-technical owners usually mean this. - The technical backend. This is the server side: PHP code, the database, plugins, the web server and configuration files. Developers usually mean this.
Both are “behind the scenes.” The first is the part you operate. The second is the part that makes it run. The words WordPress frontend and backend simply describe this split between what the public sees and what powers it.
Think of a restaurant. The dining room is the frontend. The kitchen, the stock room and the order system are the backend. Customers judge the dining room, but the food still has to come from the kitchen.
7 easy differences between the WordPress frontend and backend
| Frontend | Backend | |
|---|---|---|
| 1. Who uses it | Any visitor | Logged-in users with a role |
| 2. Where you reach it | Your public URL | /wp-admin/ and the server |
| 3. Main languages | HTML, CSS, JavaScript | PHP, SQL (database), server config |
| 4. What it holds | Layout, styles, rendered content | Content data, users, settings, plugin logic |
| 5. Who changes it | Designers, theme developers, editors | Developers, admins, hosting teams |
| 6. Main risk | Slow or broken pages for visitors | Security holes, data loss, downtime |
| 7. How you measure it | Core Web Vitals, usability, SEO | Server response time, security, backups |
A few notes on the table.
Languages. Frontend code runs in the visitor’s browser. Backend code runs on your server before the page is sent. PHP is the core language of WordPress, and the database stores your content. The frontend ends up as HTML, CSS and JavaScript no matter what produced it.
Roles. Visitors never see the backend. Logged-in users see parts of it based on their role, such as Administrator or Editor. A role decides who can publish, install plugins, or change settings.
Measurement. Frontend speed is what Google measures with Core Web Vitals, including Interaction to Next Paint (INP), but a slow backend, such as a slow server response, delays the frontend. Our guide on how to improve LCP in WordPress shows how the two sides affect each other.
What happens when someone opens a page
Seeing the full path makes the split concrete. When a visitor opens a URL:
- The web server receives the request and hands it to WordPress.
- WordPress reads the URL and works out what is being asked for, such as a page, a post or a category archive.
- It looks for a template in your theme to display that type of content. The WordPress developer handbook calls this the template hierarchy: WordPress uses the “first matching template file” in the theme, and falls back to
index.phpif nothing matches. - PHP queries the database for the content, such as the page text, title and menu items.
- The template combines that content with the theme’s markup and styles.
- WordPress sends the finished HTML to the browser, which loads CSS, JavaScript and images.
Steps 1 to 5 are backend work. Step 6 is where the frontend appears. A visitor only sees the result.
This is why a page can be slow for two very different reasons. The server may take a long time to produce the HTML, or the browser may take a long time to render it. The fix for each lives on a different side.
The backend in WordPress: admin, PHP, database and files
The database
The database stores your pages, posts, comments, users, settings and menus. WordPress’s block editor documentation states that the blocks you assemble for a page or post are stored in the database. When a visitor loads the page, WordPress pulls the content out and passes it to the theme.
Permalinks are a useful example of how the layers meet. You set the permalink structure at Settings, then Permalinks. The “Numeric” option uses the post ID from the wp_posts table of the database. And on Apache servers, the pretty permalink rules are written into the .htaccess file between # BEGIN WordPress and # END WordPress, per WordPress’s server documentation. So one setting touches the admin, the database and a server file.
PHP, plugins and configuration
PHP runs WordPress itself, your theme’s template files and your plugins. Plugins add behavior such as forms, SEO tags, payments and security.
One important file is wp-config.php. The handbook says it is located “in the root of your WordPress file directory” and holds base configuration details such as database connection information. Treat it like a key to the building: keep it private, back it up, and do not paste it into public forums.
The frontend in WordPress: themes, templates and the block editor
Themes
According to the WordPress theme handbook, “A WordPress theme represents the design of your website.” Themes control presentation: how content looks and is displayed. Plugins handle behavior and features. The handbook adds that a theme should not hold site-critical functionality, because users would lose it when switching themes.
There are two main kinds:
- Block themes use HTML templates that you can edit in the Site Editor, with global styles defined in a
theme.jsonfile. - Classic themes use a PHP-based templating system and need basic PHP, HTML and CSS knowledge to customize.
You can usually tell which you have. WordPress’s Site Editor documentation says the Site Editor is only available with a block theme, and that you open it from Appearance, then Editor. Its block themes article says the Customizer is not available in block themes unless a plugin or theme requires it, and that classic themes have features like Widgets, a Menus section and the Customizer. So Appearance > Editor points to a block theme, and Appearance > Customize with Menus points to a classic theme. Some themes mix both, so treat it as a quick cue, not proof.
The block editor
The block editor, also called Gutenberg, builds content from blocks such as paragraphs, headings, images and buttons. It sits at the meeting point of both sides. You use it in the admin (backend), but what you build is what visitors see (frontend). You edit in the backend, and the result is stored in the database and rendered by your theme.
Page builders
Tools like Elementor work on the same principle: you design inside the admin or an editor, the layout is stored, and the output appears on the frontend. A builder can add extra CSS and JavaScript, which is why builder-heavy pages can be heavier. Our comparison of Elementor vs Gutenberg speed looks at that trade-off.
Where changes belong across the WordPress frontend and backend
Knowing the WordPress frontend and backend split answers this question. It saves the most time and prevents the most breakage.
| You want to… | It belongs in… | Side |
|---|---|---|
| Change headline, text or images | The page in the block editor or builder | Content in the backend, shown on the frontend |
| Change colors, fonts, spacing site-wide | Theme settings, theme.json or the Site Editor | Frontend |
| Change the structure of a page type | Theme template (.html or .php), ideally in a child theme | Frontend |
| Add a contact form or a booking system | A plugin | Backend logic, frontend output |
| Add a custom post type or data field | A small plugin, not the theme | Backend |
| Change who can edit what | User roles and permissions | Backend |
| Make pages load faster | Hosting, caching, image and script handling | Both |
| Change the URL structure | Settings, then Permalinks (with redirects) | Backend setting, visible on the frontend |
Two rules follow from the table.
Keep behavior out of the theme. If a feature should survive a redesign, such as a custom post type or a form, put it in a plugin. This matches the handbook’s guidance that themes are for presentation.
Keep your edits out of the parent theme. Changes made directly to a theme’s files can be lost when the theme updates. A child theme holds them safely. Our custom WordPress theme development guide explains the options, and our post on theme updates covers how to test them safely.
When a change goes beyond settings, such as a bespoke template, a custom checkout layout or a design the theme cannot produce, that is where a WordPress theme customization service helps. The skill is knowing which side to touch and keeping the change from affecting anything else.
Headless WordPress: splitting the WordPress frontend and backend
Normally, WordPress runs the frontend and backend together. It stores the content and renders the pages with a theme. In a headless setup, WordPress keeps the backend (content, users, admin) and a separate application builds the frontend.
WordPress’s REST API is what makes this possible. The handbook describes it as an interface through which applications interact with your site using JSON data, and says it can power interactive front ends and external apps. The block editor itself relies on it. Public content is generally available through the API, while private and password-protected content requires authentication.
Why would a team choose this?
- A mobile app and a website share one content source.
- The team wants a JavaScript framework for the frontend.
- There are strict performance or design requirements that a normal theme does not meet.
The costs are real:
- You maintain two systems instead of one.
- Plugins that print content through the theme may not work on the separate frontend.
- Preview, SEO tags, forms and caching need to be rebuilt on the new frontend.
- You need developers comfortable with both sides.
For most business sites, a well-built theme on a fast host does the job, and headless is not needed. Consider headless only if you have a specific requirement a normal theme cannot meet.
How to check the WordPress frontend and backend of your own site
You do not need to be a developer to see both sides of your own site.
- Frontend: open your site in a private browser window. What a logged-out visitor sees is your frontend.
- Backend: log in at
/wp-admin/. Look at Appearance and Plugins to see your theme type and active plugins. - Speed: run PageSpeed Insights on a key page and look at the Core Web Vitals results (LCP, CLS and INP). Poor LCP can come from either side.
- Server: ask your host which PHP version runs and whether caching is enabled.
- Customizations: check whether you use a child theme, and whether special features live in the theme or in plugins.
If you inherited a site and cannot tell where things live, an audit saves a lot of guessing.
Security and maintenance across the WordPress frontend and backend
The backend is the more attractive target, because it holds logins and data. Use strong passwords, keep WordPress, themes and plugins updated, and take backups. Our WordPress security checklist covers the details.
The frontend needs care too. Test key pages on mobile after updates, keep an eye on speed, and check that forms and checkout work. A WordPress maintenance and support plan bundles these routine checks, and our WordPress development services cover builds that need custom code.
Want us to look at where your changes should go?
If you are not sure whether a change belongs in the theme, a plugin or settings, we are happy to talk it through. We can tell you which side is causing a problem and how to fix it without breaking anything else, even if you do the work yourself. Our custom WordPress theme developers can scope a safe approach with you. Send us a few details through our contact page and ask for a free review.
FAQ
Is WordPress frontend or backend?
Both. WordPress is a content management system. Its backend stores content and runs the admin dashboard, and its frontend, built with a theme, shows that content to visitors.
What is the backend of WordPress?
It means either the admin dashboard at /wp-admin/ or the server side: PHP code, the database, plugins and configuration files. Most owners mean the dashboard, and most developers mean the server side.
Is PHP frontend or backend in WordPress?
PHP is backend, because it runs on the server. In classic themes, PHP template files assemble the page on the server, and the visitor’s browser receives HTML, CSS and JavaScript.
What is headless WordPress?
A setup in which WordPress handles content and the admin, while a separate application builds the public frontend. It uses the WordPress REST API to fetch content. It adds complexity, so it suits specific needs more than typical business sites.
Where should I make design changes in WordPress?
For small changes, use the block editor, the Site Editor or theme settings. For structural changes, edit templates in a child theme. For features, use a plugin. Avoid editing the parent theme directly.
Which should I learn first, the frontend or the backend?
Start with the frontend basics of HTML and CSS if you want to change how a site looks. Learn PHP and how WordPress uses the database if you want to build plugins or custom themes. Many roles need both.