wp-api Backbone JS Client fetch options

Thanks @sallyCJ for fixing my error ! Here’s some examples for WP-API backbone JS client. It may help others : Fetch post of a certain author and category : var filteredPosts = new wp.api.collections.Posts(); authorsPosts.fetch({ data: { author: currentUserId, categories: 42 } }).then( posts => { for(const post of posts){ //do stuff with each post … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)