How enhance RSS to enclosure attachements informations
-
Hi,
I need enhance RSS Atom feed for correct enclosure informations of post attachements.
For example:
Post https://www.kremnica.sk/2018/04/11/zmeny-a-doplnky-c-3-uzemneho-planu-mesta-kremnica/ include one href pdf in body:
https://www.kremnica.sk/wp-content/uploads/2018/04/Strategicky_dokument_ZaD_c_3.pdf
I need that this pdf link will be enclosured in RSS Atom feed.
Posts can contain more than one pdf in body, and other attachement for too (images jpg, png, word documents etc.)
How can I grab this informations into RSS enclosure?
RSS enclosure example:
<item> <guid isPermaLink="false">https://mesto.sk/clanok/rozhodnutie-uradu</guid> <link>https://mesto.sk/clanok/rozhodnutie-uradu</link> <author>[email protected]</author> <title>Rozhodnutie uradu</title> <description>Toto je rozhodnutie úradu o pou?ívaní priestranstva</description> <enclosure url="https://mesto.sk/files/application/pdf/Rozhodnutie_41.pdf" type="application/pdf" length="1000"/> <pubDate>2007-03-16T23:00:59Z</pubDate> <category>frontpage</category> </item>
I was found this:
https://www.sitekickr.com/snippets/wordpress/add-image-media-content-enclosure-tags-rssbut this is only for images, I need code for all possible types of attachements
- This topic was modified 6 years, 7 months ago by .
- This topic was modified 6 years, 7 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘How enhance RSS to enclosure attachements informations’ is closed to new replies.