if author meta is empty

i am developing a multiauthor website using wp. I want to out put author meta in the single page. The output is working fine but to make it better, i want to output something else if the field is empty, especially for field that is not required such as website, twitter or facebook.

Basically i use this to output the field:

<strong>Website:</strong> <a href="<?php the_author_meta( 'website' ); ?>" target="_blank"></a></p>

What i want to do is if the author don't have any website, so i want to output something like "No website"

How to do this? O yes, by default this field in wordpress is not empty, it just have content like "http://"


<?php if(get_the_author_meta('website') != 'http://'): ?>
<strong>Website:</strong> <a href="<?php the_author_meta('website'); ?>" target="_blank"></a></p>
<?php else: ?>
<strong>No website</strong>
<?php endif; ?>

Need Your Help

Website Publish Fails

c# asp.net .net .net-4.0 publish

I have a Web Application consuming a WebService. My web application has 2 projects - Startup and Other projects. I am able to build my solution and also run it without any problem in my local machi...

Supported Platforms for iPad app?

ios ipad bundle target platform

I'm creating an app for iPad (my first), and I was about to submit a binary until I noticed something peculiar in the target build settings. Under the "Supported Platforms" key, it say "iphonesimul...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.