almb1111 Posted December 23, 2011 Share Posted December 23, 2011 I think this is an easy question, but Im still a php Noob. In wordpress there is a $current_user which returns the logged in user's username. Also the author's page is http://efunnypictures.net/author/USERNAME . I am making a button which takes the logged in user to his author page. So in the href, what code should I put to add $current_user to http://efunnypictures.net/author/ ?? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/253765-php-code-to-add-url/ Share on other sites More sharing options...
Zephni Posted December 23, 2011 Share Posted December 23, 2011 I'm not sure if this is the answer you are looking for, but if it is just how to put the currect username in that href it would be: http://efunnypictures.net/author/<?php echo $current_user; ?> Quote Link to comment https://forums.phpfreaks.com/topic/253765-php-code-to-add-url/#findComment-1300931 Share on other sites More sharing options...
Maq Posted December 23, 2011 Share Posted December 23, 2011 This is a very basic question refer to the manual - http://php.net/manual/en/language.operators.string.php Quote Link to comment https://forums.phpfreaks.com/topic/253765-php-code-to-add-url/#findComment-1300934 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.