Ask your WordPress questions! Pay money and get answers fast! (more info)

Filter RSS/XML Feed by Tag

  • SOLVED

Hi,

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

Here is the Feed:
http://www.eventsvictoria.com/DistributionService/RSS.xml

Here is the variable I need filtering:
<myEvents:marketingRegion>Grampians</myEvents:marketingRegion>

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)

2013-03-01

Gabriel Reguly answers:

Hi parksey18,

Does it look good to you?

[[LINK href="http://wpquestions.ppgr.com.br/rss-reader/"]]http://wpquestions.ppgr.com.br/rss-reader/[[/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.

Edit2:

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.

Edit3:

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');



Regards,
Gabriel


parksey18 comments:

Hi Gabriel,

All I see is the URL.,

Regards,
parksey18


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