0
votes
1answer
191 views

How can I get url from image tag in feed with fetch_feed?

I used this piece of code in functions.php to add featured image in <image> tag in feed add_action('rss2_item', 'add_my_rss_node'); function add_my_rss_node() { global $post; ...
0
votes
1answer
80 views

fetch_feed showing only first item

I'm trying to import a feed from a WordPress site to another using fetch_feed(). All is good except for the fact I can get only the first item of the feed. Here's the code I'm using ...
0
votes
1answer
188 views

get_item_quantity() Error When Fetching Feed

I'm using this script in two places on the same page to output some RSS feeds: <?php include_once(ABSPATH . WPINC . '/feed.php'); $rss = ...
2
votes
1answer
502 views

fetch_feed: retrieve entries in the appearing order, not chronologically

I'm using WP function fetch_feed to retrieve a feed and display its items. <?php /* include the required file */ include_once(ABSPATH . WPINC . '/feed.php'); /* specify the source ...
1
vote
1answer
528 views

Combining RSS Feeds and Sorting with fetch_feed

I'm trying to create a feed of the most recent 10 posts from 5 different feeds all combined into one list. I found a way to combine the feeds but have not been able to easily limit them to 10 and sort ...
2
votes
2answers
6k views

How to get a post content from another wordpress blog/site?

I have a situation where i need to display posts from a specific category from another wordpress site into my wordpress site. Both are my sites and i thought of creating a page specially for this in ...
0
votes
3answers
411 views

Passing feed URLs with “&” to fetch_feed()?

How do I pass feed URLs with & in the URL to fetch_feed()? The feed is not parsed correctly if there is a & in the feed URL. Actually it works in the example I gave, but now I'm populating ...
1
vote
1answer
270 views

placement of wp_error with fetch_feed

This might be really simple, but I'm pretty hopeless when it comes to rss and WP. Where should I put the if ( is_wp_error( $feed ) ) { in a code like this: <?php $rss = ...