wordpress-seo icon indicating copy to clipboard operation
wordpress-seo copied to clipboard

Non-image Unattached Media Does Not Appear In Sitemap

Open amboutwe opened this issue 7 years ago • 14 comments

What did you expect to happen?

All unattached media items would appear in the media sitemap.

What happened instead?

Only unattached images appear. User has multiple pdf files they want listed in the media sitemap.

How can we reproduce this behavior?

  1. Upload a pdf file through Admin > Media
  2. Enable media sitemap through Admin > SEO > XML Sitemaps > Post Types

Technical info

  • WordPress version: 4.7
  • Yoast SEO version: 4.0.2

amboutwe avatar Dec 22 '16 20:12 amboutwe

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

amboutwe avatar Dec 22 '16 21:12 amboutwe

@jdevalk Should we add non-image media to the media sitemap too? Or should it be an 'image-only' sitemap?

tacoverdo avatar Dec 29 '16 16:12 tacoverdo

Specifically for PDF files I'm inclined to say yes. Not every type of file is useful in search, but adding PDFs automatically would be in line with core's recent work. However, PDFs are not images. They're full blown documents, so they should be added as separate URLs, which probably means a bit more work.

/cc @atimmer

jdevalk avatar Dec 30 '16 09:12 jdevalk

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

Pcosta88 avatar Jan 26 '17 21:01 Pcosta88

Hi Ihave in my website http://www.guitarart.co.il/ hundreds of pages that contain guitar chords for example http://www.guitarart.co.il/eng_accord/C/California%20Dreaming.pdf Those pages must be on sitemap must be.... I tried to enable all kind of check boxes in the settings but the sitemap still doesn't recognize those pages

davidsidi avatar May 07 '17 12:05 davidsidi

of course as it can be seen those pages are PDF

davidsidi avatar May 07 '17 12:05 davidsidi

and the page taht contains all these links is http://www.guitarart.co.il/chords

davidsidi avatar May 07 '17 12:05 davidsidi

Hi I still don't have solution for my problem This is my sitemap http://www.guitarart.co.il/sitemap_index.xml that was created by YOAST but it doesn't include many pages with unattached pdf from this page
http://www.guitarart.co.il/chords for example this page http://www.guitarart.co.il/eng_accord/D/Dream%20A%20Little%20Dream%20Of%20Me.pdf is not included and there are many many more

davidsidi avatar Jul 04 '17 23:07 davidsidi

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

Djennez avatar Mar 29 '19 07:03 Djennez

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

Djennez avatar Mar 29 '19 07:03 Djennez

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

Pcosta88 avatar Apr 04 '19 19:04 Pcosta88

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

monbauza avatar Apr 15 '20 11:04 monbauza

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

LauraYoast avatar Jul 02 '20 09:07 LauraYoast

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

dokidash avatar Jul 25 '22 19:07 dokidash

Closing this issue/feature request. FYI: Joost has released https://wordpress.org/plugins/pdf-sitemap/ as an addon to Yoast SEO recently - if you want a PDF sitemap, please have a look.

jeroenrotty avatar Mar 30 '23 14:03 jeroenrotty