Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

There any way to run a shortcut that is in a meta box?

I'm trying to execute the shortcut but does nothing, is that if the code comes from the wordpress editor does not have any problem

share|improve this question
    
Shortcut or shortcode? –  Bainternet May 12 '11 at 18:48
add comment

2 Answers 2

up vote 1 down vote accepted

use do_shortcode() on your meta box content: http://codex.wordpress.org/Function_Reference/do_shortcode

share|improve this answer
    
Thanks for your answers –  Jorge Alvaro May 17 '11 at 20:58
add comment

Take a look at the wordpress filters and when do_shortcode gets added to the_content. meta box content doesn't come from the_content therefore doesn't get filtered and no shortcode gets executed. You have to add the filter to your meta box content yourself.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.