[wp-hackers] Registering shortcodes for meta boxes
jnolte at getmoxied.net
Thu Nov 17 22:32:24 UTC 2011
Thank you Steve! That makes total sense.
On Nov 17, 2011, at 5:27 PM, Steve Taylor wrote:
> Shortcodes get parsed when stuff goes through 'the_content' filter.
> Obviously this automatically gets applied by the_content(), but for
> anything else, either do this:
> echo apply_filter( 'the_content', $my_meta_box_content );
> Or, if you ONLY want the shortcodes parsing (and not everything else
> that's hooked to the_content):
> echo do_shortcode( $my_meta_box_content );
> I think these should do the trick.
> On 17 November 2011 20:21, Jeffrey Nolte <jnolte at getmoxied.net> wrote:
>> Is there a certain way to add a shortcode to meta box. The registered shortcode does not seem to be showing up when used in a meta box.
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers