SEO Chrome Extension Interested in SEO Review Tools for Chrome? Learn more..

Author description excerpt WordPress

VN:F [1.9.22_1171]
Rating: 9.3/10 (10 votes cast)

WordPress offers users the option to add additional information to their profile like, first name, website and biographical info.

To display the full author information of a specific post, WordPress uses the the_author_meta template tag. This tag also offers the ability to specify the information about the author you like to retrieve. In this case we’re looking at the description / biographical info of the author.

By default WordPress will display the full author description when the php tag, <?php the_author_meta( ‘description’ ); ?>, is used inside your WordPress Theme.

So far so good, but now I would like to show some summarized information (include description) about the author at the bottom of the single post page. And on the author page itself I would like to display the full description and other available information. The situation above can’t be created without some custom coding…. and we’ve got some nice code right here!!

Post update 04/17/2013
Array count replaced by WordPress “wp_trim_words” function .
Making efficient use of WP functionality http://codex.wordpress.org/Function_Reference/wp_trim_words.

Added “strip_tags” functionality to remove HTML from WP user bio description.

Author Excerpt Function

Copy paste the author excerpt function to the functions.php file inside your theme directory.

What does the code do?

  • Limit the number of words used for the author description.
  • Display dots where the word limit cuts off the description
  • Display a read more link pointing to the WordPress author page.

Author excerpt Template tag

Copy paste the author excerpt template tag to the single.php file inside your theme directory.

This function is specifically written to display an intro of the author description. To display other information about the author you can use the default WordPress author meta tags

Author description excerpt WordPress, 9.3 out of 10 based on 10 ratings Wordpress

Upcoming online marketing events





5 thoughts on “Author description excerpt WordPress

  1. Astha says:

    I have a WP site on which users are adding links in their profiles under bio section, how can i restrict them, so that if they add any link it should be automatically removed, or may be i want to disable the bio section completely, please let me know how can i take this off?

    1. Admin says:

      Hey Astha,

      You can give this solution a try: iblognet.com/remove-auto-links-wordpress-author-bio.html
      Haven’t tested it myself but looks like a pretty good and simple solution.

  2. hazel says:

    I use wp_trim_words.

    1. Admin says:

      Ok, and your point is ;-)

  3. Admin says:

    Post update 04/17/2013
    Array count replaced by WordPress “wp_trim_words” function .
    Making efficient use of WP functionality http://codex.wordpress.org/Function_Reference/wp_trim_words.

    Added “strip_tags” functionality to remove HTML from WP user bio description.

Leave a Reply

Your email address will not be published. Required fields are marked *

Seen on …

Numbers and stats

22,357

Registered Members

9.3 / 10

Avg. tool rating

185,000

Monthly visitors

45%

Returning visitors

SEO Chrome ExtensionGet the new Chrome Extension!

Tool Alert (!)

SEO Review Tools for Chrome is a free extension which allows you to quickly check the URL your visiting, with one of these (18) SEO tools:

SEO Review Tools for Chrome
Close