Support » Fixing WordPress » Not showing empty tags

  • I’d like to allow posters to fill out or not fill out fields in their profile and then when I display a post by them I want to show only the ones that are filled out.

    Obviously if it is empty and I only use the tag it doesn’t show up. But I want to do something like:

    Author’s web site: <?php the_author_url(); ?>

    But if they gave no URL, I don’t want to display the “Author’s web site” part either. Is there a way to test the value of the_author_url?

  • The topic ‘Not showing empty tags’ is closed to new replies.