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.

Is it possible to make shortcodes available in the Author bio textarea?

share|improve this question
3  
Wouldn't that be a matter of do_shortcode when printing its value on the front-end? –  brasofilo Mar 3 '13 at 9:06
2  
@brasofilo Should be an answer :) –  kaiser Mar 3 '13 at 9:52

1 Answer 1

up vote 4 down vote accepted

It a matter of using do_shortcode in your author.php template file (or wherever applies). This function has to be "echoed". And instead of using the_author_meta (which echo's the result), use get_the_author_meta.

<?php echo do_shortcode( get_the_author_meta( 'description' ) ); ?>
share|improve this answer

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.