Support » Plugin: Network Latest Posts » 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,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jose Luis SAYAGO


    Hello Rudolf,

    Thanks for your comment and your feedback, indeed shortcodes are stripped from excerpts, your suggestion is interesting, I’ll look into it. If there’s something I can do to improve compatibility with embedded media I will add it as a feature.

    Best Regards,
    José Luis.

    Thanks for your swift reply!

    Sounds great to me. I will try and experiment aswell and keep you posted.


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Gallery and Oembed’ is closed to new replies.