fecth_feed(custom_field url) not working
I am creating a website that gathers rss feeds from various sources and displays them by topic on different pages. I am creating my own template pages. I am trying to use 1 template for each page and then just have the feed url change dynamically using a custom field that I created on each page within WordPress.
Here’s a snippet of my code:
So when this runs, rather then displaying the permalink and the title of each feed, it is simply printing out the url – http://feeds.feedburner.com/example – one and then stops. I am not sure whether you can have a url address as a custom field or not. Any advice would be greatly appreciated.
When I sue an actual URL $afl_link = fetch_feed(‘http://www.examplefeed.com’); instead of $afl_link = fetch_feed($url); it works fine.
- The topic ‘fecth_feed(custom_field url) not working’ is closed to new replies.