Tag Archives: JSON

For the record

this is dumb:

Screen Shot 2016-09-03 at 6.14.47 PM

  1. make a string with the taxonomy slug
  2. make an object with the post type and any other parameters you want to request
  3. add the term to the request object, with the string from step 1 as the key

3 steps to build the request because someone at automatic decided to use dashes in the wordpress.com portfolio taxonomy. I suppose I could equally blame Angular for auto-unwrapping dashes in object keys.  Although there is a second error in wordpress’ architecture, of requiring the term in such a strange GET parameter, instead of in JSON in the request body.