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

[Bug]: REST API outputs Site Logo and not Featured Image #149

Open
1 task done
goaround opened this issue Aug 5, 2024 · 0 comments
Open
1 task done

[Bug]: REST API outputs Site Logo and not Featured Image #149

goaround opened this issue Aug 5, 2024 · 0 comments

Comments

@goaround
Copy link
Contributor

goaround commented Aug 5, 2024

Description of the bug

If you query the REST API for posts and include the featured image from the Global Mediathek with ?_embed=wp:featuredmedia e.g. https://my-wordpress.test/wp-json/wp/v2/posts?_embed=wp:featuredmedia the featured image outputs the site logo and not the image:

XHbfhEId

Reproduction instructions

  1. Create a Post and use a featured image from the Global Mediathek
  2. Query the REST API with ?_embed=wp:featuredmedia e.g. https://my-wordpress.test/wp-json/wp/v2/posts?_embed=wp:featuredmedia
  3. See the site logo under _embedded->wp:featuredmedia[0]

Expected behavior

Should output the featured image correcly

Environment info

No response

Relevant log output

No response

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
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