Page 1 of 1

Removing Short codes from RSS

PostPosted: January 27th, 2011, 2:38 pm
by Deyson
Is there a way to remove short codes from RSS?

Re: Removing Short codes from RSS

PostPosted: January 28th, 2011, 12:31 am
by Cristián Lávaque
I don't know about that, but have you tried using PHP instead of the short code? You can also protect the feeds from showing restricted content here:

General Options -> Alternative View Protection

s2Member protects Categories, Tags, Posts, Pages, Files, URIs & more. BUT, even with all of those security restrictions, it's still possible for protected content excerpts to be seen through XML feeds, in search results generated by WordPress®; and/or ( depending on your theme ), possibly in other Archive views; which might include: Posts by Author, Posts by Date, a list of featured items formulated by your theme, OR even through other widgets/plugins adding functionality to your site. ~ We refer to all of these collectively, as "Alternative Views".

Using the options below, you can tell s2Member to protect some ( or all ) of these "Alternative Views", by filtering WordPress® database queries for you. s2Member can automatically hide protected content that is NOT available to the current User/Member. In other words, s2Member is capable of pre-filtering ALL database queries, so that excerpts of protected content will not be allowed to slip through. This is marked "experimental", because we're still testing this against MANY widget/plugin/theme combinations.

Re: Removing Short codes from RSS

PostPosted: January 28th, 2011, 6:25 am
by Deyson
I am using alternative view, but in the my RSS feeds the short codes are shown, the viewer can not download the protected items but they can see they not so pretty short code.

Re: Removing Short codes from RSS

PostPosted: January 28th, 2011, 11:28 am
by Cristián Lávaque
I see what you mean.

Then I would try using the PHP code instead of the shortcode and see if that shows up in the feed, which I hope doesn't.