Hello,
I made this script to check to wherever the 'Author Bio' is empty or not if empty then display a little message saying 'This author does not have a description yet...' but if the author does have a description then it will display their bio.
But the problem I'm having is that it displays the 'Author Bio' also the message that is shown when the Author doesn't have a bio???
Here's the code:
I've tried changing it around using different methods but yet fail as it still does the same...So if anyone could kindly help me with solving this I would greatly appreciate it! -- Many thanks in advance!PHP Code:<?php
if ( the_author_meta('description') == '' ) {
echo '<em>This author does not have a description yet...</em>';
} else if(the_author_meta('description')) { echo the_author_meta('description'); }
?>![]()



Reply With Quote

Bookmarks