designwithfocus

Back end & development

Jamstack vs WordPress: Files Ahead of Time, or PHP

By Design With Focus Team 6 min read
Two site diagrams, one of built files and one of PHP with a database

Short answer

Choose Jamstack when you want a decoupled front end and generated files, and choose WordPress when editors should publish through PHP, themes, and a database. jamstack.org defines the approach as separating the experience layer from data and logic, with services called through APIs. WordPress.org says the software is built on PHP and MariaDB.

Last verified against the sources listed below.

Key takeaways

  • jamstack.org calls Jamstack an architecture that decouples the experience layer from data and logic.
  • Its generators page is a catalog of static site generators for Jamstack sites.
  • WordPress.org says WordPress is built on PHP and MariaDB and is GPL-licensed.
  • The features page says you make sites with themes and plugins, and install needs a database.
  • PHP's manual says the server runs the script and sends the resulting HTML to the browser.

Jamstack vs wordpress is a choice between files built ahead of the request and an application that runs PHP against a database. jamstack.org defines Jamstack as an architecture that decouples the web experience layer from data and business logic, and that calls custom logic and third-party services through APIs. WordPress.org says WordPress is built on PHP and MariaDB.

WordPress is the PHP side of that sentence.

Web hosting is where either kind of site has to live. The verdict is about rendering and editing, not about a market share figure.

How does each one render?

Jamstack sites are associated with generated files. WordPress renders with PHP.

Jamstack WordPress
Rendering Decoupled experience layer. The generators catalog is static site generators PHP runs on the server and sends HTML. A cache may serve a stored file
Content editing Whatever API or service you connect. Not a single built-in editor on the homepage Posts, pages, media, drafts, and revisions in the admin
Hosting shape Files a static host can serve, plus API calls PHP, a database, and optional cache or CDN
When to choose You want a build step and services behind APIs Editors should publish in core without a separate build

The Jamstack generators page is titled as a list of static site generators for Jamstack sites. Hugo, Jekyll, and many others appear there as tools that produce sites. That is the “files ahead of time” half of the title.

The homepage itself stresses decoupling and APIs more than a single build command. Read both pages. A Jamstack site is not defined there as “no JavaScript,” and it is not defined as “no server anywhere.” APIs still run somewhere.

PHP’s manual says PHP is a widely used open source scripting language especially suited to web development and able to be embedded in HTML. The distinguishing point it prints is that the code runs on the server, generates HTML, and the client receives the result without receiving the script. That is the request-time model WordPress is built on.

The about page, last modified October 22, 2026, says WordPress is built on PHP and MariaDB and licensed under GPLv2. It started in 2003 as a fork of b2/cafelog.

How do people edit content?

WordPress documents posts, themes, and plugins. Jamstack leaves the editor to a service.

The features page says you create posts and pages, insert media, and publish with a button. You manage drafts, schedules, and revisions. Themes change the presentation.

WordPress ships with three default themes, and a theme directory holds more. Plugins add behavior that is not in core. Installing on a host can mean creating a database, uploading the files, and running the installer.

The developer features also list a REST API, custom post types, and the theme and plugin systems.

Jamstack’s homepage says the experience layer should not be dictated by business logic, and that logic and third-party services are consumed through APIs. It does not name a required CMS. An editorial tool, if you use one, is one of those services.

The generators list includes WP2Static, described there as using WordPress as the CMS while producing a static website. That is a hybrid: edit in WordPress, publish files. It is listed as a generator, not as the definition of either product.

A static site generator versus hand-written HTML is a narrower choice inside the file-based side. WordPress is not that choice unless you add a tool such as the one the generators list names.

What does hosting look like?

WordPress needs PHP and a database unless a cache serves files. A Jamstack site can be files plus APIs.

The WordPress performance handbook describes the cost of the PHP path. It talks about PHP, MySQL or MariaDB, and repeated queries on requests. It says caching plugins can store posts and pages as static files and serve those files, which reduces processing.

It says a CDN can mirror images, JavaScript, CSS, and theme files. Dynamic pages are harder to cache. None of that changes the about page: the software itself is PHP and MariaDB.

A generated Jamstack site, in the sense of that generators catalog, is a set of files a host can serve without running PHP for each view. The APIs you call for forms, search, or commerce are separate deployments. The homepage’s “composable” wording is this split.

You do not get a database table for posts unless a service you chose provides one.

Images are the same problem on both. Compress them with the image compressor before they ship. A CDN moves bytes.

It does not replace a smaller file.

Which should you choose?

Choose the editing model first, then the rendering model.

Choose the Jamstack shape when the pages can be generated before the visit, the interactive pieces can be APIs, and you are willing to run a build. The homepage’s promise is flexibility of the experience layer, not a specific theme directory. Use the generators list as evidence that the common delivery is a static generator, and check the tool you pick rather than assuming every generator works the same way.

Choose WordPress when the people publishing need posts, media, users, and plugins inside one GPL application, and you can run PHP and MariaDB or a host that runs them for you. Add a cache or a CDN from the handbook when the same HTML can be reused. Add a static export only if you deliberately pick a generator that does that.

Do not pick either side from a traffic-share claim. The pages opened here describe architecture and features, not a current census of the web.

Frequently asked questions

Does Jamstack mean JavaScript, APIs, and Markup?

The jamstack.org homepage opened for this guide does not spell the name out that way. It says Jamstack is an architectural approach that decouples the web experience layer from data and business logic, and that custom logic and third-party services are consumed through APIs. The generators page is a list of static site generators for Jamstack sites. Use those two statements.

Does WordPress build a page on each request?

The software is PHP and a database. PHP's manual says a PHP page runs on the server and the browser receives the HTML that script produced. The WordPress performance handbook describes PHP and database work on requests, and it says caching plugins can store posts and pages as static files and serve those instead. A CDN can mirror images and other static files.

Can WordPress produce a static site?

The Jamstack generators list includes WP2Static and describes it as using WordPress as the CMS for a static website. That is a bridge, not the default WordPress request. You still edit in WordPress, then a generator writes files. The about page's PHP and MariaDB stack remains the application. The static output is an extra build step documented on the generators list, not a claim that core WordPress ships only files.

Which one is easier for a non-developer editor?

WordPress.org's features page says people who have made a document can create posts and pages, put them live with a button, and manage media, drafts, and revisions. Themes and plugins change presentation and add features without writing the core. A Jamstack site can still have a CMS, because the architecture allows services behind APIs, but the homepage does not name one editor.

Do both still need compressed images?

Yes. The browser downloads the image either way. A generated HTML file and a PHP response can reference the same JPEG, PNG, or WebP. Compress the file before it is committed to the repository or uploaded to the media library. Hosting shape does not change the byte size of the picture.

Sources