Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: New, custom navbar


gogoplata
Participant

@gogoplata

There is likely a better way to do this but this should fetch the username:

<?php

global $current_user;

if ( isset($current_user) ) {

echo $current_user->user_login;

}

?>

Not sure why there’s a need to re-arrange the URL structure but hopefully that code helps.

Skip to toolbar