I had to fight with it for two days before making it work as I wanted to. At first, when you try to add a feed it will tell me that SimplePie couldn't process it. So I had to go and install Simple Pie core first, before doing anything else. Once you add a new campaign and put a feed in there, the plug in will tell you that it fetched successfully 0 posts. Then I checked if something went wrong in the database table WP-o-matic creates. The problem was that it encoded the & symbol into & and it couldn't fetch any posts. The solution is to open the wpomatic.php file and find the AddCampaignFeed() function, it somewhere around the 1000th line. Then locate the following line:
$url = $wpdb->escape($simplepie->subscribe_url());
and change it to:
$url = $wpdb->escape(htmlspecialchars_decode($simplepie->subscribe_url()));
This will decode the symbol properly and eliminate any errors.
However, after the fix, some of my amazon feeds were still not working and the script kept fetching 0 posts. The solution to this problem is to go to Feedburner.com and process your feeds through their system. Once you do that, copy and paste the feedburner feed URL and it will work without a hitch.
There's a new version of WP-o-matic coming soon. V 1.5 V 2.0 will be available at http://wpomatic.com. Thanks to the developers for the wonderful plug-in.
Tagged as:
wordpress, plugin, php, wp-o-matic
Do you know how long until v2 will be available?
If you liked the article and want to contribute to it, please feel free to leave your comment. HTML tags are not allowed, but you can use the following BBCode to enhance your message: [url] [quote] [code] [b] [i] [u] [color].