FAQ Database Discussion Community


Ember CLI / resource / wp-api slug

ember.js,ember-cli,wp-api
For practice, and because the word 'post' is too confusing these days, I'm creating a resource called thought(s) - I'm getting some wp-json with the WordPress API (so the 'posts' are 'thoughts') - I'm setting the path to /wordpress with the intention of getting urls like this: http:/site.com/wordpress/thought-slug - I'm...

If image is null from JSON, use another image - AngularJS

json,angularjs,wordpress,angularjs-ng-repeat,wp-api
Below I have an ng-repeat where the inner div gets a background image set after reading a JSON file. My question is - If post.featured_image.attachment_meta.sizes.medium.url does not exist or is null, what would be the best approach to replace this with another image? Say a default backup image? A solution...

How can I get a list of posts for a category with WP-API?

wordpress,wp-api
Should be easy, but didnt find it in the WP-API docs.