If you want to serve your WordPress install as a read-only JSON API, you can use this theme.
This theme will not show any front-end, and will redirect your homepage and any other page to your WP JSON API (for example, GET /wp-json
)
This theme is useful when using WordPress in a headless manner.
- Clone or download this repository
- Copy
config.ini.example
toconfig.ini
- Change the values inside
config.ini
to your front-end configuration - Upload the theme to your WordPress back-end and activate it