Welcome to ManageWP.org

Register to share, discuss and vote for the best WordPress stories every day, find new ideas and inspiration for your business and network with other members of the WordPress community. Join the #1 WordPress news community!

×

6 min read Joshua Strebel
Development | blog.daftcode.pl | 11 days ago

WordPress As A Headless CMS – DaftCode Blog

The Headless horseman comes for you. Or.. just a quick primer on how to leverage the WP API to get/set content out of WP.

WordPress As A Headless CMS – DaftCode Blog

Development | blog.daftcode.pl | 11 days ago

So you’ve built a static website, all is going well, but then it turns out that the client needs a small news section (which will be updated frequently). What do you do? A headless CMS might be an answer. Headless?
Headless software is software capable of working on a device without a graphical user interface.
A regular CMS, like WordPress or Drupal, has three basic parts:
a database to store content
a CRUD API to edit it (an admin panel)
a way of displaying the content — basically what the end users see
This third part though won’t be needed. What end users see will be the static website you already have, and all we want from the CMS is a way to provide the content as data, not as HTML views. The CMS will not be concerned at all about how the site looks like, it will just handle data input and output.
Enter WordPress.
We’ll skip any paid and/or cloud-hosted options for a couple of reasons. Firstly, no client would accept any fees for a small news section. Secondly, in the event of our cloud-hosted CMS provider going out of business, the data might go with him. Thirdly, it’s best to learn if you can look at the internals of any code you’re using.