WordPress.org

Ready to get started?Download WordPress

Forums

Network Latest Posts
Gallery and Oembed (3 posts)

  1. MeRuud
    Member
    Posted 1 year ago #

    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

    http://wordpress.org/extend/plugins/network-latest-posts/

  2. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. MeRuud
    Member
    Posted 1 year ago #

    Thanks for your swift reply!

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

    Thanks,
    Ruud

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.