Problem with code in widget
-
I am trying to add one of two different links to my footer area, based on whether the current user had admin privileges. The links should appear to the right of the social icons in the footer.
I am not a programmer so I am at a loss for trying to debug this, any help would be appreciated. I am using this because I wanted to hide the access panel that was across the top of the page.
site: https://www.cookingexchange.info
Code:
<?php get_currentuserinfo() : ?> <?php $user_ID = $current_user->ID : ?> <?php if( $user_ID ) : ?> <?php if( current_user_can('level_10') ) : ?> <a href="https://www.cookingexchange.info/wp-admin/" style="color: #F2F5A9; font-size: 14px; text-decoration: none">Admin Dashboard</a> <?php else : ?> <a ref="https://www.cookingexchange.info/dashboard/" style="color: #627B8E; font-size: 14px; text-decoration: none">Member Dashboard</a> <?php endif; ?> <?php endif; ?>
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Problem with code in widget’ is closed to new replies.