Quantcast
Channel: How to get the link from a RSS Feed? - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by nelsoniv for How to get the link from a RSS Feed?

I had the same problem but I solved it with the follow:$link = $xml->entry[$i]->link[2]->attributes()->href; //the feed-blog has 3 type of linkswhere probably $xml is $post for you.

View Article



Answer by salathe for How to get the link from a RSS Feed?

1. rel=alternate$links = $post->xpath('link[@rel="alternate" and @type="text/html"]');$link = (string) $links[0]['href'];See http://php.net/simplexmlelement.xpath and...

View Article

How to get the link from a RSS Feed?

I am trying to get the post link of a RSS feed. I load all the posts in an array correctly ( I successfully echo the content and other tags) but I have a problem to get the link. In the feed, the link...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images