[*]<span><?php _e('Listed by:','cp');?></span> <?php // check to see if ad is legacy or not if(get_post_meta($post->ID, 'name', true)) { if (get_the_author() != '') { ?> <?php the_author_meta('display_name'); ?> <?php } else { echo get_post_meta($post->ID, 'name', true); } ?> <?php } else { ?> <?php the_author_meta('display_name'); ?> <?php } ?>
[*]<span><?php _e('Website:','cp');?></span> <?php // check to see if ad is legacy or not if(get_post_meta($post->ID, 'name', true)) { if (get_the_author() != '') { ?> <?php the_author_meta('url'); ?> <?php } else { echo get_post_meta($post->ID, 'url', true); } ?> <?php } else { ?> <?php the_author_meta('url'); ?> <?php } ?>
There are currently 1 users browsing this thread. (0 members and 1 guests)