An open API service indexing awesome lists of open source software.

https://github.com/ashiishme/wordpress-headless-cms

WordPress headless cms that prevents server theme access and customize api requests.
https://github.com/ashiishme/wordpress-headless-cms

wordpress wordpress-api wordpress-development wordpress-theme

Last synced: about 1 year ago
JSON representation

WordPress headless cms that prevents server theme access and customize api requests.

Awesome Lists containing this project

README

          

# WordPress Headless CMS

WordPress Headless CMS that prevents server theme access and customize api requests.

This is a theme file for WordPress which is used for backend as a headless CMS if you want to use it with front-end frameworks or library like **Anuglar / React**.

## Setup

Download & Install WordPress on your server. ( same directory as your Angular or React application )

Download `wordpress-headless-cms` and upload it to themes directory.

Activate this theme.

Open `index.php` file and update the `header location url` to your own application url.

Now use WordPress api url in your any application.

## About WordPress Headless CMS

This project is a WordPress theme that prevents user from accessing home url of api. It redirects to app url specified in header method.

- Prevents user from accessing server url.
- Enables post thumbnail option in WordPress post.
- Adds post thumbnail in rest API json response. ( use field name `featured_image_src` or change from `functions.php` file )
- Custom excerpt length.

## WordPress Rest API

https://developer.wordpress.org/rest-api/