• Hi, I recently updated my wordpress and all plugins.. this plugin worked beautifully until now. My shortcodes for multiple other plugins stopped working within pages that were wrapped with <!–raw–><!–/raw–>

    See here: https://shop.kristalnorton.com/books/

    Is there a fix besides having to deactivate this plugin? And if I do deactivate, are there any risks of my pages/posts changing how they currently look?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Janis Elsts

    (@whiteshadow)

    Technically, the shortcodes shouldn’t have worked to begin with. The <!--raw--> tags are supposed to prevent most shortcodes from being executed. This is because the purpose of Raw HTML is to stop the content inside the tags from being changed, and running a shortcode changes the content by replacing it with the shortcode output.

    If you want to run shortcodes inside content wrapped in raw tags, the best approach is to use [raw shortcodes=1]...[/raw] instead of <!--raw--->.

    > And if I do deactivate, are there any risks of my pages/posts changing how they currently look?

    It depends on whether you’re using any HTML code that WordPress would normally modify on output. If you are, there’s a risk that some of your posts/pages won’t look right or your code won’t work. If not then you can safely deactivate the plugin.

    Thread Starter Kristal13

    (@kristal13)

    Ahhh okay, thanks for that clarification. Yeah, with an older version the shortcodes were still working within the wrap. I replaced the wrap on that page with the one you suggested and it works great! Now to find all the pages that I used it on…

    As for being able to deactivate, I do have a lot of html heavy pages that I’m worried will get messed up. But I NEVER use the visual editor.. does that make a difference regarding the risk? I haven’t updated my knowledge on how wordpress handles html in a long while – does it still do a lot of stripping even without toggling between the two viewers?? Is there a comprehensive document showing what codes wordpress outputs so I know if I’m using any? I’m usually just using basic html stuff.

    Plugin Author Janis Elsts

    (@whiteshadow)

    But I NEVER use the visual editor.. does that make a difference regarding the risk?

    I also haven’t looked at it in a while, but there are definitely some filters that are applied when a post is displayed. For example, even if you don’t use the visual editor, WordPress will still add automatic paragraphs (<p>) and replace quotes and other special characters with HTML entities (e.g. ). I don’t think it will *strip* code, but it might mess up your code or insert additional code that you didn’t expect.

    Is there a comprehensive document showing what codes wordpress outputs so I know if I’m using any?

    Not as far as I know.

    • This reply was modified 7 years, 8 months ago by Janis Elsts. Reason: Add blockquotes
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using Shortcodes + deactivating’ is closed to new replies.