found code to fix shortcode issue, not sure where it goes
-
i’m using a plugin that uses a shortcode. everything’s fine, EXCEPT i cannot get text i write in the post to appear ABOVE the shortcode. no matter what i do, the text always appears BELOW the shortcode generated content.
for example, if i write this in a post:
intro copy, intro copy, intro copy
[wpecards]it always appears like this:
[wpecards]
intro copy, intro copy, intro copyi read something about having to use “return” instead of “echo” in the plugin, but i didn’t write the plugin, nor am i a programmer.
i did find this code which is supposed to place the text above the shortcode, but i don’t know where it goes:
ob_start(); [PHP script or function call] $result = ob_get_contents(); ob_end_clean(); return $result;
can anyone help? thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘found code to fix shortcode issue, not sure where it goes’ is closed to new replies.