Handlebars js

Create html templates based on json data. 

I found it easier to understand unlike other frameworks ive gone through. A day or 2 of checking it out and 1 week later it was still on my mind to do some exploring.

I did exactly that. I was looking to create a laravel api to test things out but as a WordPress specialist, why shouldnt i test with something i go through on a daily bases.  So the wp-json endpoint became the perfect ginni pig for me to use.

I took an endpoint that contained artwork that I have been working on the last couple of months. My target was to list posts of a specific category, and allow a searching functionality.


var ourRequest = new XMLHttpRequest();
ourRequest.open(
  "GET",
  "https://www.tsdevcut.co.za/wp-json/wp/v2/artworks"
);

I did run into a problem when trying to filter by taxonomy. Nothing a WP rest filter couldn’t fix.