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

Unattached images not in attachment sitemap #7320

Open
amboutwe opened this issue Jun 27, 2017 · 3 comments
Open

Unattached images not in attachment sitemap #7320

amboutwe opened this issue Jun 27, 2017 · 3 comments

Comments

@amboutwe
Copy link
Member

Please give us a description of what happened.

Unattached images are not in attachment sitemap.

Please describe what you expected to happen.

Attachment sitemap would contain unattached images

How can we reproduce this behavior?

  1. Upload image through Admin > Media
  2. Enable attachment sitemap
  3. View attachment sitemap = New image not listed

Technical info

  • WordPress version: 4.8
  • Yoast SEO version: 4.9
@monbauza
Copy link

Please inform the customer of conversation # 222656 when this conversation has been closed.

@amboutwe
Copy link
Member Author

Please inform the customer of conversation # 450984 when this conversation has been closed.

@Djennez
Copy link
Member

Djennez commented Sep 10, 2019

I have just reproduced this issue but I found out that this behavior extends to the way the media is uploaded.

Somehow, images that I upload via media in the side-menu don't get added to the sitemap. This also goes for images that I import via the commandline via wp media import. Adding these images to a post does not add them to the attachment sitemap. Images that I upload via the insert media function within a post editor do get added to the sitemap, and also if I remove said image from all posts it will still be kept in the sitemap.

Edit: also situational based on the editor.

Situation In sitemap
Gutenberg uploaded & in post & removed from post
Classic uploaded & in post & removed from post
Media uploaded & in post via Gutenberg
Media uploaded & in post via Classic
Media uploaded

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

No branches or pull requests

7 participants