The tag has no usage guidance.

learn more… | top users | synonyms

-1
votes
0answers
49 views

Is it possible with wordpress to use a shopping API based on XML or JSON?

I am running an affiliate website from last 2 years and it is based on the product feed api coming from one of the price comparison websites. My website was created by a developer in Core Php. When I ...
0
votes
0answers
7 views

Fetch Feed Only Displaying Mapped Source on Multisite

I'm using the basic fetch_feed function to display posts from across my multisite network on my main site. Yet the $source_name variable isn't displaying the correct source when posts are from the ...
0
votes
0answers
40 views

Paginate fetch_feed() Results

I have a scenario where I'm loading an RSS feed on a WordPress website via fetch_feed(). So far, it's working great, but I'm not sure how to paginate the results. The RSS feed is a large archive, so ...
-1
votes
1answer
43 views

How to show random feed from DB and show content in my site

I try to get more than 3 feed from other web site and show it in my site like : function fw_shortcode( $atts ) { global $wpdb, $feedtable; $result=mysql_query("SELECT * FROM " . $feedtable . ...
1
vote
1answer
170 views

A function to fetch blog content via rss feed

I am trying to make a function which take an rss fedd URL and fetches the most recent 2 posts. I have tried to remake the snippet from here to a full function in funtions.php as following. I don't ...
2
votes
0answers
126 views

How to get SimplePie fetch_feed without stripping iframe code?

I'm grabbing a remote feed in my plugin and some entries have iframe code I want to keep. However, SimplePie keeps stripping it out. Here is my code and what I've tried already: ...
1
vote
3answers
453 views

Why does Simplepie return feed items in a wrong order?

I have this feed from picasa (correct but arbitrary, desired order). The result is messed up Also, with this feed, for example. It's fine in regular, sorted by date feeds, but not these. In the ...
1
vote
1answer
157 views

How to delete transients written by fetch_feed()?

I'm using fetch_feed() to cache external rss sources displayed in a widget. in case the widget (or, more likely, the whole plugin) is deleted/deactivated, i want to manually delete all related ...
1
vote
1answer
298 views

How to get more than 25 items via Simplepie RSS Feeds?

I have a feed with 50 items but seemingly no matter what I do, it always returns just 25. $feed->set_item_limit(50); or $rss_items = $rss->get_items(0,50); none of these have any effect nor do ...
0
votes
1answer
183 views

fetch_feed works on localhost but not on server

There is one similar question, but I can't seem to get round to what's going on. So any help appreciated... The following code works just fine on localhost, but when on the live site I get the ...
0
votes
1answer
76 views

Check if feed is fetched successfully

I am trying to fetch specific post feed from my one side to another one. every thing works fine, only thing I need to check is that if the feed is not successfully fetched by custom field, it should ...
0
votes
1answer
116 views

Using fetch_feed to retrieve items with non common titles

I'm trying to fetch some feeds using fetch_feed, however, into the for foreach, as the documentation says, I can access to values with common titles like title, permalink, etc using the get-> ...
1
vote
1answer
201 views

fetch_feed returning rss feeds on same server as empty

I'm trying to use fetch_feed to pull a feed that is hosted on the same server (but uses a different domain name). So, my site is, for example, bullfrogs.com and I'm trying to pull an RSS feed of ...
1
vote
1answer
139 views

Custom query AFTER rss fetch_feed not working

I'm trying to do a custom query after an rss fetch_feed but for some reason nothing shows up. The code I'm using to fetch the feed is: <?php // Get RSS Feed(s) include_once( ABSPATH . WPINC ...
0
votes
1answer
511 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
164 views

fetch_feed function works on template index.php but not in plugin/wp-admin

I am using fetch_feed and basically have the same code as the great example provided here but I am creating new posts from the content instead of displaying it afterwards. The errors I am seeing are: ...
0
votes
1answer
137 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
424 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 = ...
0
votes
3answers
275 views

How do I use fetch_feed() to pull in a large number of posts?

When I use fetch_feed() to pull in posts from a feed, even if I set the maximum posts variable to a very high number, it will only pull in 10 posts. I want to pull in all the posts and then paginate ...
2
votes
1answer
806 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 ...
0
votes
1answer
717 views

Aspx/Rss feed - failed to open stream: Redirection limit reached

I have this issue ive been stuck with now. Its when i load a page that have a feed. I put the feed in wp-admin , this usually work with other feeds but not sure why its not working with this kind of ...
1
vote
1answer
105 views

How do I get link URLs from the Wordpress links backend into an array?

I'm currently running a blogroll on a site I'm working on by defining a variable with an array that has all the rss feed urls I want to pull from. Like this for example: <?php // Get RSS Feed(s) ...
1
vote
1answer
813 views

combine multiple feeds with fetch_feed and display blog titles for each item?

I'm trying to display multiple feeds using the fetch_feed function. Its working well thus far except I can't figure out why the title for each individual rss feed will not show up. Here is my code: ...
1
vote
1answer
918 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 ...
1
vote
1answer
321 views

wp_remote_get vs. fetch_feed ? which is the better for performance?

I m trying to share my web site contents for other web sites using by external loop file or rss file. when i asked some questions about wp_remote_get function ; @Serkan suggest to me , using ...
1
vote
1answer
1k views

Add a Post Thumbnail to an RSS Feed with custom size

I have two different blogs on the same domain and my goal is to get the 3 latest posts from blog1 to show on the home page of blog2. Everything goes well following these instructions: ...
0
votes
1answer
3k views

Getting Thumbnail in fetch_feed from custom field

i have setuped showing rss from my network site using fetch_feed(); include_once(ABSPATH . WPINC . '/feed.php'); $rss = fetch_feed('rss link here'); $maxitems = $rss->get_item_quantity(5); ...
0
votes
1answer
198 views

Need correct results from 6 rss (fetch_feed)

I Just need some correct results from 6 rss feed I am fetching 6 feeds and maked a news ticker bar at http://thehoopdoctors.com/online2/newfeed/ I am getting results from 6 rss feeds like First ...
0
votes
3answers
492 views

Unable to display favicon using get_favicon()?

I'm using fetch_feed (based on Simplepie) to display an array of RSS feeds (favicon & headlines only). Documentation on the simplepie website says to use get_favicon in the stylesheet. And I'm ...
2
votes
1answer
279 views

Scheduled event does not run at midnight

I have an event scheduled to fetch feeds from different sources at midnight. I believe for some reason it is not being triggered. I use Core Control plugin for testing. When I 'Run Now' through it, ...
0
votes
2answers
530 views

Disable Outbound Web Requests

I've setup wordpress on AWS. I want to reduce as much network traffic as possible. What services/jobs do I need to disable in Wordpress?
2
votes
2answers
10k 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
2answers
429 views

Showing RSS feed via fetch_feed. How to show the site title of the feed?

Question is simple. Can i get the title and main url of the site from where the posts are loading? Actually i want to linked to the main site. The url can be found by wordpress function esc_url(); ...
0
votes
3answers
445 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 ...
2
votes
1answer
2k views

Troubleshooting fetch_feed and SimplePie

I've got a very basic solution using fetch_feed() and SimplePie to pull in RSS items which is working on my localhost, but for some reason is_wp_error() persists as true on the live server. Is there ...
1
vote
1answer
321 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 = ...
4
votes
3answers
629 views

Refresh external feeds only in cron?

Is there an easy way to ensure that external feeds (via fetch_feed()) are only fetched via cron, and not when a regular user visits the site? This is for performance reasons, I want to minimize the ...
2
votes
1answer
2k views

Combining multiple RSS feeds using fetch_feed

I'm using fetch_feed to display an rss feed on a theme i'm working on. I think the documentation implies that you can combine multiple feeds, can anyone confirm this, ideally with an example. Thanks ...
0
votes
2answers
176 views

Using links (link_rss field) as the source for fetch_feed

I am trying to display feeds from a couple of my blogs using the build in function fetch_feed() however I stumbled across a few problems. I am storing the rss urls in the links section and will be ...
1
vote
2answers
677 views

How to set the cache for the built-in SimplePie feed parser?

I'm using the built-in SimplePie, AKA fetch_feed(), to retrieve a feed, and I want to be able to adjust the cache time from an admin menu. SimplePie itself is well documented, but not so much the ...