PHP to call logged in user
I'm currently using a feedback system that utilizes CMS Press and another plugin thanks to jvtraydz as discussed here
What I need to do is find a way to have a link generated from the currently logged in user, so I can place a link to their feedback page.
the link needs to be:
"mydomain"/feedback/"logged in user name"
The feedback php which works when embedded on a listing page because it is pulling from the author of that post.... I think.
<li><span><?php _e('View or write feedback for:','cp');?></span>
<a href="<?php echo get_option( 'siteurl' ). "/feedback/" . strtolower(get_the_author_meta('user_login')); ?>"><?php the_author_meta('display_name'); ?></a>
I have tried embedded this code in the Dashbboard sidebar and it doesn't work, I also tried this:
<li><?php _e('Your Feedback','cp'); ?> <a href="<?php echo get_option('siteurl'); ?>/feedback/"><?php echo $user_identity; ?></a></li>
<li><a href="<?php echo wp_logout_url(); ?>"><?php _e('Log Out','cp')?></a></l
I'd be grateful for any assistance.
Last edited by doctorcilantro; November 17th, 2010 at 03:48 PM.