---
title: "Deploy next-wp"
description: "Nextjs starter with Headless Wordpress "
category: "Blogs"
url: https://railway.com/deploy/QA-TYt
---

# Deploy next-wp

Nextjs starter with Headless Wordpress 

**[Deploy next-wp on Railway](https://railway.com/template/QA-TYt)**

- **Creator:** chin's Projects
- **Category:** Blogs
- **Total deploys:** 41

## Template content

### MySQL https://devicons.railway.app/i/mysql.svg

- **Image:** mysql
- **Start command:** `docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0`

### Wordpress

- **Image:** wordpress
- **Start command:** `> bash -c "       if [ ! -d /var/www/html/wp-content/plugins/wp-graphql ]; then         curl -L https://github.com/wp-graphql/wp-graphql/releases/latest/download/wp-graphql.zip -o /tmp/wp-graphql.zip &&         unzip /tmp/wp-graphql.zip -d /var/www/html/wp-content/plugins &&         wp plugin activate wp-graphql --allow-root;       fi;       apache2-foreground;       "`
- **Public domain:** Yes

### next-wp

- **Source:** https://github.com/chinpeerapat/next-wp
- **Public domain:** Yes

## Documentation

# Next.js Starter for WordPress Headless CMS

&gt; [Watch the Demo Video](https://www.youtube.com/watch?v=JZc1-BcOvYw)

![CleanShot 2025-01-07 at 23 18 41@2x](https://github.com/user-attachments/assets/8b268c36-eb0d-459f-b9f1-b5f129bd29bc)

This is a starter template for building a Next.js application that fetches data from a WordPress site using the WordPress REST API. The template includes functions for fetching posts, categories, tags, authors, and featured media from a WordPress site and rendering them in a Next.js application.


## Overview

### What's included?

✅ Type-safe data layer with the WordPress RestAPI<br>
✅ Granular access to revalidation and cache tags<br>
✅ Setup for all basic WordPress options: Posts, Pages, Authors, Categories, Tags<br>
✅ Easy integration with custom post types and ACF<br>
✅ Dynamic routes for Posts and Pages<br>
✅ Design system for layout and prose styling ([craft-ds.com](https://craft-ds.com))<br>
✅ Filter, Search, and Card components<br>
✅ Dynamically rendered sitemap<br>
✅ Dynamically generated metadata<br>
✅ Dynamically generated OG/Twitter Cards for Posts and pages<br>
✅ Responsive Nav and Footer components<br>
✅ Site configuration file<br>
✅ Menu configuration file<br>
✅ Lite and dark mode support<br>
✅ shadcn/ui components and theming<br>
✅ Vercel analytics<br>

## Similar templates

- [Pixelfed](https://railway.com/deploy/OZSdEw) — Explore + Share beautiful photos and videos on the Fediverse
- [Hexo](https://railway.com/deploy/hexo) — Hexo — fast static blog framework with admin editor and S3 media storage
- [Bluesky PDS (Atproto Spaces Alpha)](https://railway.com/deploy/bluesky-pds-atproto-spaces-alpha) — "The Atproto Spaces Alpha" version of Bluesky PDS.

Open this page in a browser: https://railway.com/deploy/QA-TYt
