Customizing the REST API Response in Wordpress allows for many different solutions, whether you are looking to create a decoupled website or app with data from a WordPress backend, or to simply allow external websites to read a post feed.
Posts in Code
Sometimes running composer update can cause unexpected problems. Here is the procedure we use to keep our short-term changes separate from our local updates, keeping your local site error-free.
Learn how to leverage Terminus from Pantheon to quickly maintain dozens of sites at once, all from your command line.
Surface your newly published content better using a date boost for an Apache Solr powered Drupal 8 site search.
Improve performance and simplify your JSON API responses with sparse fieldset query parameters.
Creating your next Drupal 8 distribution as a sub-profile and choosing the right build tools could save considerable development hours.
I have two content types: Art and Artist. The first content type, Art, has an entity reference field to the second content type, Artist. I have a view named “Art” which shows all Art content with an exposed “Artist” filter that lets a user pare down their results. For example, a user might use the “Artist” filter to only show art by Cleon Peterson.
During a recent Drupal 8 project we needed to collect structured address information outside the context of an entity. Specifically, adding a section for address and phone number to the Basic Site Settings configuration page. As it turns out, the same functionality you get on entities is now also available to the Form API.