Skip to content

Pages and Posts: featured_image is now featured_media#1

Open
bouzourene wants to merge 1 commit into
eideroliveira:masterfrom
bouzourene:master
Open

Pages and Posts: featured_image is now featured_media#1
bouzourene wants to merge 1 commit into
eideroliveira:masterfrom
bouzourene:master

Conversation

@bouzourene

Copy link
Copy Markdown

I've been trying to use this lib with a headless WordPress, but I cannot fetch the featured image on pages and posts.
It seems the WordPress API now returns featured_media instead of featured_image.
This commit adds it as a new field in both structs. I did not remove the old field in order to keep backwards compatibility.

@bouzourene

Copy link
Copy Markdown
Author

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

Successfully merging this pull request may close these issues.

1 participant