Try get_the_author_meta()
instead of the_author_meta()
.
the_author_meta()
echos the output, which you don’t want to do in this case.
Try get_the_author_meta()
instead of the_author_meta()
.
the_author_meta()
echos the output, which you don’t want to do in this case.