Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Filter RSS/XML Feed by Tag WordPress



I need to filter an XML/RSS so it only displays all items with a specific variable.

Here is the Feed:

Here is the variable I need filtering:

I require the entire finished coding for it to work.
I hope to have it as an rss feed to paste into a plugin.

Answers (1)


Gabriel Reguly answers:

Hi parksey18,

Does it look good to you?

[[LINK href=""]][[/LINK]]

Edit: Indeed, it just shows the feed URL.

After I wrote you the answer something has changed at the feed source, I suspect the feed content become has become too big for my server.

Anyway I have added an error message, which was missing because the code was just working when I wrote the answer.


I have added a local copy at my server and it seems to work. So perhaps the issue is that it was just too slow to get the data from the feed source.

Please have a look and tell me what you think about it.


Question is expired, please extend it clicking on Extend Question by 1 Day? link, else other experts won't be albe to participate.

Regarding your reply, "/home/localhost/" means your are testing your code at your server, but the issue is pretty same the one I described before: Feed content is too big to be processed by your server.

Possible solution, add this line to your wp-config.php file:

define('WP_MEMORY_LIMIT', '96M');


parksey18 comments:

Hi Gabriel,

All I see is the URL.,


parksey18 comments:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 9 bytes) in /home/localhost/wp-includes/SimplePie/Parser.php on line 324