2

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

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

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' ) ); ?>
-1

in functions.php

add_filter( 'get_the_author_description', 'do_shortcode');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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