Gallery and Oembed
-
Hi!
Great plugin, works perfect!
I just have one question. I am assuming shortcodes are being stripped out before the post is being output and was wondering if there is a possible way to add a rule for exceptions?The feed perfectly shows images and text content but videos (by Oembed) and galleries are not being shown. It would be great if it could display the actually gallery, but not sure how easy it will be to exclude the gallery shortcodes from escaping.
It does not even have to show the gallery itself, maybe just the images (or an image) from that gallery so the post does not seem empty on the feed.
I was thinking of mandating the category and then base the shortcode exclusion on the category.. something like this:
if ( !in_category('438') ) { $content = strip_shortcodes( $content );So when it is not in the category 438, strip the shortcodes. I am not a programmer so not sure if this works or if there is a better alternative.
What do you think?
Thanks in advance,
Rudolf
The topic ‘Gallery and Oembed’ is closed to new replies.