WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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

Your Answer


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.