<?php $other_items = new WP_Query( array( 'posts_per_page' => 5, 'post_type' => APP_POST_TYPE, 'post_status' => 'publish', 'author' => get_the_author_meta('ID'), 'orderby' => 'rand', 'post__not_in' => array( $post->ID ), 'no_found_rows' => true ) ); ?>
<?php if ( is_user_logged_in() || $other_items == '0')
{ ?>
<a href="<?php echo CP_ADD_NEW_URL; ?>" class="obtn btn_orange"><?php _e( 'Post FREE Profile', APP_TD ); ?></a>
<?php } else { ?>
<?php } ?>
There are currently 1 users browsing this thread. (0 members and 1 guests)