Get url attribute value
-
I would like to get the value of the
url
attribute of the<enclosure>
tag in an RSS feed’s<item>
, and then save it as custom meta (enclosure_url
). I’m using a custom post type of “podcasts,” and my theme templates for that will then display theenclosure_url
the way I want it. (I want the audio file to remain on its original server, and not be imported to mine.)“Options for audios” appears to do nothing whatsoever. I have enabled “Get also Audios from RSS” and its sub-option “Also enclosure and media RSS tags.”
What does this do? Nothing evident…
I also tried (with the Professional add on) putting
enclosure
as “Feed Tag,” then{enclosure}
as Template, under “Custom Feed Tags.” Then in “Custom Fields” I putenclosure_url
for “Name” and{enclosure}
as “Value.”This approach doesn’t work. It does save a custom meta to the new post of
enclosure_url
, however with an empty value.
- The topic ‘Get url attribute value’ is closed to new replies.