WordPress.org

Ready to get started?Download WordPress

Forums

Not showing empty tags (1 post)

  1. mycroft007
    Member
    Posted 8 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic