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??? :confused:

I suggest you have a look here :
http://codex.wordpress.org/Function_Reference/the_author_meta

bennyy007

06-29-2010, 01:59 PM

What am I meant to be looking at? I've been on that page yet provides the correct variables to use and so on but nothing checking against them :confused: but thanks though :)

kar2905

06-29-2010, 02:05 PM

I guess you should use :
get_the_author_meta()

Check this :

NOTE: Use get_the_author_meta() if you need to return (not display) the information.

bennyy007

06-29-2010, 02:10 PM

Ah that well yes in a way but that's like checking against all, I could be very wrong on that but and I've tried it but still does what it did before. Not really sure why WP doesn't like this kind of method of checking :confused:

kar2905

06-29-2010, 02:25 PM

There is something wrong you are doing. Which file are you editing ?

bennyy007

06-29-2010, 02:38 PM

Single.php

kar2905

06-29-2010, 03:25 PM

Try debugging with Firebug or just view the source and see where the author bio is displayed.

bennyy007

06-29-2010, 03:31 PM

Well I know where it is as I've manually put it in the single.php file...