Skip to content

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

Description

@goaround

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions