rendered paste body<?php get_header(); ?><div class="wpn_inner"><div class="wpn_content"><div class="wpn_left"> <div class="wpn_category"><?php if(isset($_GET['author_name'])) : $curauth = get_user_by('slug', $author_name);else : $curauth = get_userdata(intval($author));endif;?> <?php if (have_posts()) : ?> <h1><?php echo $curauth->first_name; ?> <?php echo $curauth->last_name; ?> profile</h1><div id="authorboxi"><div id="authorphoto"><?php echo get_avatar( get_the_author_email(), '100' ); ?></div><div id="authorinfor"><p><strong>Name:</strong> <?php echo $curauth->first_name; ?> <?php echo $curauth->last_name; ?></p><p><strong>Website:</strong> <a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></p><p><strong>Profile:</strong> <?php echo $curauth->user_description; ?></p></div></div><div style="clear:both;"></div><h2>Connect with me</h2><div id="socialntwrk"><?php $authors = $wpdb->get_results('SELECT DISTINCT post_author FROM '.$wpdb->posts); if($authors): foreach($authors as $author):?><?php if(get_the_author_meta('twitter', $author->post_author) || get_the_author_meta('facebook', $author->post_author) || get_the_author_meta('linkedin', $author->post_author) || get_the_author_meta('digg', $author->post_author) || get_the_author_meta('flickr', $author->post_author)): ?> <ul> <?php if(get_the_author_meta('twitter', $author->post_author)): ?> <li><a href='http://twitter.com/<?php the_author_meta('twitter', $author->post_author); ?>'><img title="Follow me" src="http://sharecommons.com/images/twitter.png" alt="Twitter" /></a></li> <?php endif; ?> <?php if(get_the_author_meta('facebook', $author->post_author)): ?> <li><a href='http://www.facebook.com/<?php the_author_meta('facebook', $author->post_author); ?>'><img title="Become a fan" src="http://sharecommons.com/images/facebook.png" alt="Facebook" /></a></li> <?php endif; ?> <?php if(get_the_author_meta('linkedin', $author->post_author)): ?> <li><a href='http://www.linkedin.com/in/<?php the_author_meta('linkedin', $author->post_author); ?>'><img title="Connect with me" src="http://sharecommons.com/images/linkedin.png" alt="Linkedin" /></a></li> <?php endif; ?> <?php if(get_the_author_meta('digg', $author->post_author)): ?> <li><a href='http://digg.com/users/<?php the_author_meta('digg', $author->post_author); ?>'><img title="Digg me" src="http://sharecommons.com/images/digg.png" alt="Digg" /></a></li> <?php endif; ?> <?php if(get_the_author_meta('flickr', $author->post_author)): ?> <li><a href='http://www.flickr.com/photos/<?php the_author_meta('flickr', $author->post_author); ?>/'><img title="My Flickr" src="http://sharecommons.com/images/flickr.png" alt="Flickr" /></a></li> <?php endif; ?> </ul><?php endif; ?><?php endforeach; endif; ?></div><h2>My recent articles</h2> <?php while (have_posts()) : the_post(); ?> <div class="wpn_category_block"> <span class="wpn_news_thumb"> <a href="<?php the_permalink() ?>" rel="bookmark"> <img alt="<?php the_title(); ?>" src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" width="67" height="67" /> </a> </span> <div class="wpn_categorycontent"> <div class="wpn_categorycontent_title"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php category_title(); ?></a></div> <span class="wpn_date-and-time"> Published on <?php the_time('l, F j, Y') ?> by <?php the_author_posts_link() ?> </span> <?php wpn_content_show(370); ?> </div> <div class="wpn_read-more"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">Read More →</a></div> </div> <div style="clear:both;"></div> <?php endwhile; ?> <!-- Page Navigation --> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> <!-- 404 Error --> <?php else : include (ABSPATH . '/wp-content/themes/Bloom/editable/404/404-error.php'); endif; ?> </div></div><?php get_sidebar(); ?><?php get_footer(); ?>