0

Currently My author Box is hrad code like this →

            <p> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.Lorem Ipsum is simply dummy text.   <a href="#"> Read More </a> </p>

If I wish to fetch the authors information dynamically then I make these changes →

<p> <?php get_the_author_meta('description'); ?> <a href="#"> Read More </a> </p>

But Unfortunately this portion <?php get_the_author_meta('description'); ?> is not able to fetch the author's description.

AUTHORS BIGRAPHICAL INFORMATION IS ALSO WRITTEN

  • Are you sure it's not fetching it? Because it might be, but you're not echoing it... <?php echo get_the_author_meta('description'); ?> OR the built in function <?php the_author_meta('description'); ?> codex.wordpress.org/Function_Reference/the_author_meta – socki03 Jun 6 '17 at 18:32
  • Let me see. This one worked → <?php the_author_meta('description'); ?> would you like to write an answer? – The WP Novice Jun 6 '17 at 18:45
1

get_the_author_meta('description') is meant to return the content to a variable.

You're looking for the_author_meta()

<?php the_author_meta('description'); ?>
  • Can you answer this question also? Click Here. This one is a related question. – The WP Novice Jun 6 '17 at 19:22
  • If you find my posts good and may be useful for future users then please upvote me. – The WP Novice Jun 7 '17 at 2:17

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.