Reply To: Dynamically Display HTML depending on User
OK, that helps, I feel I’m getting closer.
Here’s what I have:
<?php if(is_user_logged_in() && $type === $s2member_level1){ ?>
<div class="paybox">
<h3>Make Payment with PayPal®</h3>
<?php $uemail = getDisplayedUserEmail(); ?>
<?php echo do_shortcode('[gravityforms id="7" field_values="recip-email=' . $uemail . '"]'); ?>
</div><!-- .paybox -->
<?php } ?>
Now, it is still displaying on both users pages (employee and employer)…