I'm trying out this package. The way I was loading posts before, using just fetch, it would return the href of the featured image for each post.
With WPAPI.js, I can get a featured_media id tag, but that's it. I'd rather not make seperate calls for each image, but let the browser handle image loading. How can I make .posts() load the featured image href?
Hi,
I'm trying out this package. The way I was loading posts before, using just fetch, it would return the href of the featured image for each post.
With WPAPI.js, I can get a featured_media id tag, but that's it. I'd rather not make seperate calls for each image, but let the browser handle image loading. How can I make .posts() load the featured image href?