Shortcode into textbox

71 views
Skip to first unread message

greencode

unread,
Feb 17, 2011, 4:50:25 AM2/17/11
to Magic Fields
Is there any way to add shortcode from another plugin into the textbox
within a magic field and for that to show correctly in the final
output? Basically exactly like adding shortcode to a post or suchlike.
At the moment I can't seem to get it to output.

David Valdez

unread,
Feb 17, 2011, 1:45:46 PM2/17/11
to magic-...@googlegroups.com, greencode
in the multiline field of Magic Fields, use exactly the same  filters to the main textarea of wordpress, there you can use shortcodes.  

--
David.

greencode

unread,
Feb 17, 2011, 1:48:23 PM2/17/11
to Magic Fields
Thanks so much for this

On Feb 17, 6:45 pm, David Valdez <m...@gnuget.org> wrote:
> in the multiline field of Magic Fields, use exactly the same  filters to the
> main textarea of wordpress, there you can use shortcodes.
>

Traversal

unread,
Feb 18, 2011, 2:53:08 AM2/18/11
to Magic Fields
You can also use Wordpress' apply_filters method with "the_content" on
ANY string to get shortcodes and so on to be processed, so suppose you
had a plain textbox field called "name", you could do this:

echo apply_filters("the_content", get("name"))
Reply all
Reply to author
Forward
0 new messages