fetch_rss url problem
-
Hi
I′m using fetch_rss function to display some headlines of other blogs at the bottom of my blog.
I′m using the function as explained on the wiki:
<?php
require_once(ABSPATH . WPINC . ‘/rss-functions.php’);
$rss = fetch_rss(‘https://example.com/rss/feed/goes/here’);
echo ‘- ‘;
- ‘ . $item[‘title’] . ‘
foreach ( $rss->items as $item ) {
echo ‘‘;
}
echo ‘‘;
?>and everything seems OK
But when I click on a headline, and I′m supossed to go to the articles post, URL appears wrong. I get something like this:
https://labs.valechumbar.com/\%22https://feeds.feedburner.com/~r/Muyriver/~3/41656566/\%22The first https:// is my blog (where the fetch_rss actually is), and the second one the rss blog where I′m supossed to be linked to.
When I click there I just return to my own blog, not going to the destination oneAny ideas on how to fix this?
Thanks in advance
- The topic ‘fetch_rss url problem’ is closed to new replies.