PHP doesn't work the same as shortcodes
-
I used the PHP code you provided here: https://wpstorm.net/wordpress-plugins/post-snippets/
Example:
<?php $my_snippet = get_post_snippet( 'internal-link', 'title=Awesome&url=2011/02/awesome/' ); echo $my_snippet; ?>
It echos the exact Snippet box’s content, not the “parsed” (or rendered or whatever) output. But the shortcodes do work as intended.
Why? ??
P.S. If I can get this working, it’ll be EXACTLY what I’ve been searching VERY LONG for, ever since Hana Code stopped working (and looks like no longer supported).
Thanks!!!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘PHP doesn't work the same as shortcodes’ is closed to new replies.