WordPress and SimplePie Skills

I have used SimplePie for 2 years, and found it very useful, here are 2 skills I’d like to share with you.

Skill 1: Prevent show disordered characters if your goal site is using non-UTF8 code, such as iso-8859-1.   Befor   $feed->init() add the following code:

$feed->set_output_encoding(‘iso-8859-1’);

Skill 2: Show multiple feeds ( feeds sort by time and date)

$feed->set_feed_url(array(
‘http://www.cheapglasses123.com/blog/feed’,
‘http://www.cheapglasses123.com/glasses/feed’,

done!