Suddenly I get this error message: Cannot load raw-html-snippets.
The Raw Html Snippets does not show on the side menu anymore, BUT the current Raw Html Snippets I have on the website WORK.
I just updated to the latest version WordPress 5.6
]]>I had a custom modified version of the plugin that just got overwritten and had a bunch of pages start displaying things they shouldn’t. My main change was to change return $snippet;
to return do_shortcode($snippet);
in the rhs_raw_html_snippet_shortcode()
function.
The purpose of this is to expand any included shortcodes in the outputted content stored in Raw HTML Snippet shortcodes. This turns this plugin into a superpower. ??
Love this plugin, thank you for your work on it, and if you are able to add do_shortcode()
to the output it would be much appreciated.
My workaround for now is to add a mu-plugins file with this to filter the output of the plugin, but I’d rather it just be added directly to the plugin and avoid having to add this file.
<?php
/**
* Fix for Raw HTML Snippets shortcode plugin not expanding shortcodes
* in the output of any [raw_html_snippet] shortcode
*
* @param string $output The output from the shortcode
* @param string $tag The name of the shortcode
*
* @return string The modified output
*/
function expand_shortcodes_in_raw_html_snippet ( $output, $tag ) {
if ( 'raw_html_snippet' !== $tag ) {
return $output;
}
return do_shortcode($output);
}
add_filter('do_shortcode_tag', 'expand_shortcodes_in_raw_html_snippet', 10, 2);
]]>
Using multisite. Something strange with other wordpress upgrades/updates that causes this plugin to deactivate.
Weird, right?
When it happened the first time, thought it was a fluke.
Second time… that’s a pattern.
]]>I have created several snippets but just noticed all the title tags does not output raw. EG: <h3>HTML5 / CSS3</h3>. Please update it to output raw again. Thx.
]]>Hi there. I just updated to the latest version of WordPress (3.5.2) and now I’m seeing the text of the shortcode in the sidebar text widget? (The content of the shortcode is no longer displaying).
This is happening on several different websites.
Here’s a screenshot: https://www.screencast.com/t/WnxaQyG9a21B
It still works in content but not in the text widget.
]]>I gave this a five star rating previously and am thinking about taking it down a notch as I just discovered that contributors and authors have access. Think you should add the option of changing the access level as it means any contributor could add whatever code they want. Not a huge risk with our community, but enough that some kind of restriction should be added IMHO.
]]>If it is possible to add a Snippet into a theme, this plug-in will be more useful.
Something like this:
<?php raw_html_snippet(“my-snippet”); ?>
It would be nice if this plugin added an “Insert Snippet” icon to the “Add New Post” (post-new.php) page. For example, I have an “Add Formidable Form” icon in the “Upload/Insert” row.
An icon could let us select from existing snippets instead of trying to remember the names and snippet markup.
]]>Hello.
Thank you for this good plugin. But it conflicts with the latex plugin which uses [latex][/latex] tags… so the latex code wont generated.
Please fix if possible
]]>