Return to Snippet

Revision: 38147
at December 27, 2010 03:33 by lajlev

Initial Code
<div id="socialntwrk">
<?php if(get_the_author_meta('twitter', $curauth->ID) || get_the_author_meta('facebook', $curauth->ID) || get_the_author_meta('linkedin', $curauth->ID) || get_the_author_meta('digg', $curauth->ID) || get_the_author_meta('flickr', $curauth->ID)): ?>
			<?php if(get_the_author_meta('twitter', $curauth->ID)): ?>
			<li><a href='<?php the_author_meta('twitter', $curauth->ID); ?>'><img title="Follow me" src="" alt="Twitter" /></a></li>
			<?php endif; ?>
			<?php if(get_the_author_meta('facebook', $curauth->ID)): ?>
			<li><a href='<?php the_author_meta('facebook', $curauth->ID); ?>'><img title="Become a fan" src="" alt="Facebook" /></a></li>
			<?php endif; ?>
			<?php if(get_the_author_meta('linkedin', $curauth->ID)): ?>
			<li><a href='<?php the_author_meta('linkedin', $curauth->ID); ?>'><img title="Connect with me" src="" alt="Linkedin" /></a></li>
			<?php endif; ?>
			<?php if(get_the_author_meta('digg', $curauth->ID)): ?>
			<li><a href='<?php the_author_meta('digg', $curauth->ID); ?>'><img title="Digg me" src="" alt="Digg" /></a></li>
			<?php endif; ?>
			<?php if(get_the_author_meta('flickr', $curauth->ID)): ?>
			<li><a href='<?php the_author_meta('flickr', $curauth->ID); ?>/'><img title="My Flickr" src="" alt="Flickr" /></a></li>
			<?php endif; ?>
<?php endif; ?>

<?php endforeach; endif; ?>

Initial URL

Initial Description

Initial Title
Wordpress author pages with custom fields in profile

Initial Tags

Initial Language