[Plugin: PHP Snippets] Snippets don't print
-
My snippet file shows up in the list of available snippets, & the plugin successfully inserts the shortcode, but it just prints [my_shortcode] when viewed on the generated HTML. Doesn’t seem to matter whether I use the default snippets directory or one of my own choosing.
The out-of-the-box snippets all work, unless I make a copy, rename it, and change the shortcode — the “clone” shortcode fails, even ‘though it’s identical to the original.
For instance, I copied current_date.snippet.php to a new file named test.snippet.php and changed the shortcode to [test]. Inserted the new shortcode via TinyMCE’s PHP button; it appears in the editor as expected, i.e., ‘[test]’. Hit the ‘Preview Changes’ button and I see ‘[test]’ instead of the current date.
I checked ownership & permissions (I’m on a LAMP server); they’re all OK.
The topic ‘[Plugin: PHP Snippets] Snippets don't print’ is closed to new replies.