[wp-hackers] Method to remove shortcode from content and add only to rss.

Joost de Valk joost at yoast.com
Sat Mar 21 08:05:49 GMT 2009


in the parsing code you should be able to do

if (is_feed())
     return $output;
else
     return;

that would probably work.

Navjot Singh wrote:
> Can anybody suggest a method to parse shortcodes only in feeds and not in
> post content?
>
> I don't need shortcode to work in the post but only in the feed. Any ideas?
>
> Regards
> Navjot Singh
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>    

-- 
me *Joost de Valk*
Online Marketing, WordPress, SEO & Social Media Strategy
OrangeValley <http://www.orangevalley.nl> & Yoast <http://yoast.com>
E: joost at orangevalley.nl <mailto:joost at orangevalley.nl> - 
joost at yoast.com <mailto:joost at yoast.com>
T: +316-24-555-808 | @jdevalk <http://twitter.com/jdevalk> on Twitter


More information about the wp-hackers mailing list