I have post page with author info. But I want to show author box info only if author has description. this is what i tried to do:
<?php if ( !empty(get_the_author_meta('description')) and !empty( get_the_author_meta( 'ID' )) ):?>
<div class="blog-article-author">
//author info here
</div>
<?php endif; ?>
But I get an error:
Can't use function return value in write context
for this part of code :
<?php if ( !empty(get_the_author_meta('description')) and !empty( get_the_author_meta( 'ID' )) ):?>
How to solve this problem ?