Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I get the href to a featured image? #511

Open
charlestbell opened this issue Dec 27, 2022 · 1 comment
Open

How do I get the href to a featured image? #511

charlestbell opened this issue Dec 27, 2022 · 1 comment

Comments

@charlestbell
Copy link

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?

@charlestbell
Copy link
Author

Nvm, I realized that the apis for wordpress.com and wordpress.org are completely different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant