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

2
  • 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
    Commented Jun 6, 2017 at 18:32
  • Let me see. This one worked → <?php the_author_meta('description'); ?> would you like to write an answer?
    – WordCent
    Commented Jun 6, 2017 at 18:45

1 Answer 1

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'); ?>
2
  • Can you answer this question also? Click Here. This one is a related question.
    – WordCent
    Commented Jun 6, 2017 at 19:22
  • If you find my posts good and may be useful for future users then please upvote me.
    – WordCent
    Commented Jun 7, 2017 at 2:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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