How the Chitika Plugin Broke My Feed
I recently figured I should just monetize everything I can. So I signed up for Kontera and Chitika and thought I would give them a shot. And since I am using WordPress, I figured there would be plugins, which there was. I installed them and all was fine, until I went to comment on a CommentLuv blog and it said there was an error with my feed.
So I check the feed with a validator and sure enough, the feed is bad. And the feed was bad because of Chitika’s script tags.
So I edited the plugin so that this code will not go in feeds and all is well now.
Here are the steps:
- Navigate to Plugins->Editor in your WordPress backend
- In the dropdown there, choose the “Chitika | Premium” plugin and click the “Select” button
- You should see “Editing chitika-premium/premium.php” at the top of your page.
- Search this file for “
if($textContainsTag || (get_option('chitikap_single') == 'true' && !is_single())) {“
return $text;
} - Paste this:”
if(is_feed()) return $text;” after that
All that line of code does is prevent the Chitika Premium plugin from adding the code to feeds.
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=c5597c45-9450-494d-a6f7-fb1e287ac2bc)
Hi Stephan,
Terri from Chitika here. I appreciate you finding the bug in the plugin and coming up with the solution. I’m releasing a new version as I type that will be live on WordPress.org shortly that includes this fix and a nod to you for finding and helping to solve it! If you happen upon any other bugs please do report them through the WordPresss.org’s forum since we monitor those
Cheers
- Terri
Will do and thank you for the props at WordPress.
Best new era caps,new era hats,delicate monster energy hats,magical nfl hats,one industries hats,rockstar energy hats,Red Bull Caps,The Hundreds Hats,Supreme Hats,DC Comics Hats ,ed hardy hats are in stock now. Our site provide first-class service and reliable quanlity garantee,do not hesitate to shake hands with us and go with the tide as soon as possible!
new era hats
new era hats
new era caps
one industries hats
Rockstar Energy Hats
rockstar energy hats
monster energy hats
Red Bull Caps
The Hundreds Hats
nfl hats
Supreme Hats
DC Comics Hats
How could the Chitika plugin ever ruin anyone’s feeeeeeeeeeeeed?!?!?!