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

Anyone knows a way of using shortcodes on terms description? This is possible?

share|improve this question

closed as unclear what you're asking by Pieter Goosen, toscho Jul 9 '14 at 1:27

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

I believe the following should work:

  $content = apply_filters('the_content', $content);
  $content = str_replace(']]>', ']]&gt;', $content);

You could put this in the template of in a hooked functions.

I've cribbed this from here and here, where the intention is to write content from get_the_content() (raw) in an equivalent way to the_content() (amongst other things: parsed shortcodes).

Good luck!

share|improve this answer

I am not sure if it's only code that is needed, but Hybrid has this filter mod for such:

add_filter( 'term_description', 'do_shortcode' );

If this doesn't work I'll try to go over code more thoroughly.

share|improve this answer
Thanks Rarst, Unfortunately that filter did not work... :( Cheers – Sergio Soares Sep 17 '10 at 17:32
Can't find anything else... What do you get with this line added? Raw unprocessed shortcode? – Rarst Sep 17 '10 at 18:02

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