Sidebar-user how to have if condition
I added a link to the user sidebar but would like to hide if from the jobseeker. I have tried several operations and I am having no luck.
Here is what I have:
<?php global $userdata; ?>
<?php if ( is_user_logged_in() ): ?>
<li class="widget widget_user_options">
<h2 class="widget_title"><?php _e('Account Options',APP_TD); ?></h2>
<div class="widget_content">
<ul>
<?php if (is_user_logged_in()) : ?><li><a href="<?php echo get_permalink( JR_Dashboard_Page::get_id() ) ?>"><?php _e('My Dashboard',APP_TD)?></a></li><?php endif; ?>
<li><a href="<?php
$author = get_user_by('id', get_current_user_id());
if ($author && $link = get_author_posts_url( $author->ID, $author->user_nicename )) echo $link;
?>"><?php _e('View Profile',APP_TD)?></a></li>
<li><a href="<?php echo get_permalink( JR_User_Profile_Page::get_id() ) ?>"><?php _e('Edit Profile',APP_TD)?></a></li>
<?php if (current_user_can('edit_others_posts')) { ?><li><a href="<?php echo get_option('siteurl'); ?>/
wp-admin/"><?php _e('WordPress Admin',APP_TD)?></a></li><?php } ?>
<li><a href="http://www.websitehere.com/resumes"><?php _e('View Resumes',APP_TD)?></a></li>
<li><a href="<?php echo wp_logout_url( home_url() ); ?>"><?php _e('Log Out',APP_TD)?></a></li>
</ul>
</div>
</li>
I would like the View Resumes to only be visible to recruiters. HELP!!!