• Other shorttags within Optional Contents “if”-tags will show as plain text instead of computed content. Tried this with Scribd and Imageflow2. Anybody with a solution?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Still nothing… ??
    it’ll be great if we can work it out!

    Thread Starter MarcKersten

    (@marckersten)

    I have tested another similar plugin and nested shorttags don’t work there either. Might be an architectural problem of WordPress ? ??

    in “optional-content\optional-content.php” around line 160 it looks like this :

    return $content;

    Add this snippet before that line :

    $pattern = "/\[.*\]/";
    
                    if (preg_match($pattern, $content, $matches))
                    {
                        foreach ($matches as $shortcode)
                        {
                            $content = str_replace($shortcode, do_shortcode($shortcode), $content);
                        }
                    }

    So far this works with what i’ve tested. Enjoy ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Optional Content] Does not work with other shorttags as content’ is closed to new replies.