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.
- Host: GitHub
- URL: https://github.com/ashiishme/wordpress-headless-cms
- Owner: ashiishme
- License: gpl-3.0
- Created: 2019-05-11T08:53:56.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-21T17:32:47.000Z (almost 7 years ago)
- Last Synced: 2025-01-14T08:37:04.633Z (about 1 year ago)
- Topics: wordpress, wordpress-api, wordpress-development, wordpress-theme
- Language: PHP
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/