Title: Get url attribute value
Last modified: July 31, 2020

---

# Get url attribute value

 *  Resolved [max](https://wordpress.org/support/users/maximledoux/)
 * (@maximledoux)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/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 the `enclosure_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 put `enclosure_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.

Viewing 1 replies (of 1 total)

 *  Plugin Author [etruel](https://wordpress.org/support/users/etruel/)
 * (@etruel)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/get-url-attribute-value/#post-13195868)
 * Hi Max,
    We saw your ticket in our site. As this is a feature in the professional
   addon we follow the case there. Please answer there. thanks etruel

Viewing 1 replies (of 1 total)

The topic ‘Get url attribute value’ is closed to new replies.

 * ![](https://ps.w.org/wpematico/assets/icon-256x256.jpg?rev=2757072)
 * [WPeMatico RSS Feed Fetcher](https://wordpress.org/plugins/wpematico/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpematico/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpematico/)
 * [Active Topics](https://wordpress.org/support/plugin/wpematico/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpematico/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpematico/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [etruel](https://wordpress.org/support/users/etruel/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/get-url-attribute-value/#post-13195868)
 * Status: resolved