Show Content Different Users after login
-
I was wondering how to modify the mobile tabs on a website I have. I want to only show one specific tab if a freelancer logs in on mobile and a specific tab if an employer logs in. Here is the current code in the page-home.php, archive-project.php and archive-fre_profile.php:
<section class=”section-wrapper section-profile section-archive-profile”> <div class=”list-link-tabs-page”> <div class=”container”> <a href="”<?php">” class=”active”><?php _e(“Projects”, ET_DOMAIN); ?></a> <a href="”<?php">” class=”active”><?php _e(“Profiles”, ET_DOMAIN); ?></a> </div> </div>
I want to say if user is freelancer then display projects else if user is employer display profiles. So something like this I thought would work but it doesnt:
<section class=”section-wrapper section-project section-archive-project”> <div class=”list-link-tabs-page”> <div class=”container”> <?php if( ae_user_role($user_ID) == FREELANCER) {?> <a href="”<?php">” class=”active”><?php _e(“Projects”, ET_DOMAIN); ?></a> <?php } else if( ae_user_role($user_ID) == EMPLOYER) { ?> <a href="”<?php">” class=”active”><?php _e(“Profiles”, ET_DOMAIN); ?></a> <?php } ?> </div> </div>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Show Content Different Users after login’ is closed to new replies.