designwithfocus

WordPress & CMS

What Is WordPress Used For? Themes, Posts and PHP Sites

By Design With Focus Team 6 min read
Website editor showing a post, a theme layout, and a color palette swatch

Short answer

WordPress is used to publish and run websites, from personal posts to larger sites you edit in a theme. WordPress.org publishes the software you install. The about page says it is built on PHP and MariaDB and licensed under GPLv2. The download page calls it free. Themes supply template files, and the hierarchy ends at index.php when nothing more specific matches.

Last verified against the sources listed below.

Key takeaways

  • WordPress.org says the software started in 2003 and is built on PHP and MariaDB, under GPLv2.
  • The download page calls WordPress free and offers WordPress 7.1.5 to install on your own hosting.
  • It recommends PHP 8.3 or greater, and MySQL 8.4 or MariaDB 10.11 or greater.
  • Themes are template files. Classic themes use PHP. Block themes use HTML. The hierarchy matches.
  • WordPress walks the template hierarchy and uses index.php when nothing more specific matches.
  • A CMS, in MDN's glossary, publishes and organizes content such as text, images, and video.

A plain answer to what is wordpress used for is publishing sites you edit as posts and pages, with a theme controlling the HTML. WordPress.org’s about page says the project started in 2003 when Mike Little and Matt Mullenweg forked b2/cafelog, because they wanted a personal publishing system. Today that page says WordPress is built on PHP and MariaDB, licensed under GPLv2, and used for millions of sites.

MDN’s CMS glossary defines a content management system as software that lets people publish, organize, change, or remove content, including text, images, video, audio, and interactive code. WordPress is that kind of software. The details below are how the project itself describes the download, the language stack, and the theme files.

What do people publish with it?

People use it to publish posts and pages, then change how those views look with a theme. The about page frames it as software you can use as it comes, or customize. The download page calls it free and open, and it points at thousands of plugins that extend a site.

The theme docs describe separate views:

  • A blog posts index and a single post
  • Static pages, plus category, tag, author, and date archives
  • Search results and a not-found view

Posts and pages are the content, and the theme decides which template draws each request. Plugins extend the platform past the features that ship with it. Editing a template when you meant to edit a post is how a single article keeps an old design.

How does a request become a page?

WordPress matches the request to a query type, then loads the first template that exists. The template hierarchy says it uses the query string in the link, matches that to a type such as a search or a single post, and walks template names until one exists in the theme. A child-theme file overrides the same file in the parent.

The template files guide says classic themes are PHP files mixing HTML, template tags, and PHP, while block themes are HTML files of block markup. The hierarchy order is the same either way, with .php names in the examples and .html names in block themes. The server parses the template and returns HTML.

web.dev’s critical rendering path picks up after that HTML exists. The browser turns HTML, CSS, and JavaScript into pixels. WordPress chooses the template, and the browser renders the response.

Is the website the same thing as the software?

WordPress.org is the project site. The software is what you download and install. The about page describes an open source project under GPLv2 or later, built on PHP and MariaDB. The download page is where you get it, either by installing it yourself with your own hosting and domain, or by setting it up with a hosting provider.

The page also mentions the WordPress Playground as a browser demo. The download offered there is WordPress 7.1.5, and it recommends PHP 8.3 or greater, plus MySQL 8.4 or MariaDB 10.11 or greater. Those numbers are the install advice on that page. These pages do not list hosted-plan prices, so this article does not invent any.

Free, on the download page, describes the software you install. A theme or plugin from someone else can still have its own terms. The about page’s four license freedoms cover running, studying, sharing, and sharing your changes.

What are themes made of?

A theme is a set of template files, and two of those files are required. The template files guide says those files control how the site is displayed, and the hierarchy picks which one runs. Page templates are an extra layer for a page, a post, or a custom post type.

In classic themes, template tags such as the_title() and the_content() pull data into the file. In block themes, blocks replace those tags. Every theme needs an index template, index.php or index.html, plus style.css, the stylesheet that carries the theme header.

Common partials are a header, a footer, and a sidebar, and block themes keep parts in a parts folder. You can add single.php, page.php, archive.php, or search.php so each content type looks different. A theme can run on the index file alone. Most themes ship more.

How does the hierarchy choose a file?

It walks a list for that query and stops at the first template the theme actually has. Aside from the index template, each more specific file is optional. If a name is missing, WordPress skips ahead, and if nothing matches, index.php is the final fallback.

Other queries have their own lists, and they share that same ending.

Query First files it tries Final fallback
Single post single-{post-type}-{slug}.php, then single-{post-type}.php, single.php, singular.php index.php
Static page Custom template, then page-{slug}.php, page-{id}.php, page.php, singular.php index.php
Category category-{slug}.php, then category-{id}.php, category.php, archive.php index.php
Search search.php index.php
Not found 404.php index.php

The front page is the tricky case. front-page.php overrides home.php, and if it is missing WordPress uses home.php or page.php depending on Settings, then index.php. The hierarchy page says that index file is where the search ends.

Where do site colors fit?

Colors are a design choice on top of the theme, not a template in the hierarchy. The Website Color Palette Generator builds a palette with background, text, and accent colors for a stylesheet. That choice does not change which template WordPress selects.

How color sits in a layout is part of web design. Those colors usually land in style.css, the stylesheet every theme must include beside its templates.

Use the hierarchy when the wrong template is on screen, and the palette when the template is right and the colors are not. The index file remains when no more specific name exists, and the DOM Standard then models that HTML as a document tree.

Frequently asked questions

What are the four freedoms in the WordPress license?

The about page says WordPress is licensed under the General Public License, GPLv2 or later, and lists four freedoms. You may run the program for any purpose. You may study how it works and change it. You may redistribute it. You may distribute copies of your modified versions. Those are license freedoms for the software you download. They are not a hosting plan, and they do not set a price for a theme or a plugin someone else might sell under terms you still have to read.

What happens when a child theme and a parent theme both have templates?

The template hierarchy page says a file you add to a child theme overrides the same file in the parent. If the child has a more specific template, such as a category file named for one slug, and the parent only has the generic category template, the child's specific file is used. The reverse also holds. If the child has only the generic file and the parent has the specific one, the parent's specific file is used. Specificity and which theme holds the file both matter.

Are attachment pages turned on for new sites?

The hierarchy page says that as of WordPress 6.4, attachment pages are no longer enabled by default on new installations. People can turn them back on with a plugin, so the docs still say you should test a theme against an attachment view. The lookup order it lists starts with a MIME-type template such as image.php, then attachment.php, then more general single and singular templates, and finally the theme index. A new site that never enables the feature will not show that page.

Which template shows the latest posts?

By default the home page lists your latest posts. That view is the blog posts index, and home.php renders it whether it is the front page or a separate page. If home.php is missing, WordPress uses index.php. If front-page.php exists, it overrides home.php for the site front. The front-page file is used both when the front shows latest posts and when it shows a static page. Settings control which of those two the front is.

What does the browser do with the HTML a theme returns?

The template files guide says the server parses the template and returns HTML to the visitor. web.dev's critical rendering path article describes the next stretch, which is not WordPress-specific. The browser takes HTML, CSS, and JavaScript bytes and does the work that turns them into pixels. Theme authors still decide which templates produce that HTML. The browser does not consult the template hierarchy. It only receives the document the server chose to send.

Sources