solutionweb

WordPress Common Errors and Solutions

WordPress uses the _ author _ meta (‘description’) instead of the_author_description.

When query_posts is used to output the ranking of popular articles on the home page, the latest top articles will appear and need to be excluded. However, after opening wordpress debugging mode, it is found that WP gives the following tips:

Notice: the_author_description has been deprecated since version 2.8.0. Please use the_author_meta(‘description’) instead. in XXXX\XXXX\wp-includes\functions.php on line 3707

The_author_description is used to obtain user description information, and is commonly used to obtain wordpress article author information.

Examples of usage
Get the author description information:
Old code:


New code

Back to top