<li><span><?php _e('Listed by:','appthemes');?></span>
<?php
// check to see if ad is legacy or not
if ( get_post_meta($post->ID, 'name', true) ) {
if ( get_the_author() != '' ) { ?>
<a href="<?php echo get_author_posts_url(get_the_author_id()); ?>"><?php the_author_meta('display_name'); ?></a>
<?php
} else {
echo get_post_meta($post->ID, 'name', true);
} ?>
<?php } else { ?>
<a href="<?php echo get_author_posts_url( get_the_author_meta('ID') ); ?>"><?php the_author_meta('display_name'); ?></a>
<?php
}
?>
</li>
<li><span><?php _e('Member Since:','appthemes');?></span> <?php echo date_i18n( get_option('date_format'), strtotime( get_the_author_meta('user_registered') ) ); ?></li>
There are currently 1 users browsing this thread. (0 members and 1 guests)