How to display username in pages | Peter's Login Redirect | Forum

Back to the login redirect plugin page

Please consider registering

Log In

Lost password?
Advanced Search

— Forum Scope —


— Match —


— Forum Options —


Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
How to display username in pages
July 11, 2012
9:35 pm

I assumed I could use your username function to display the username or firstname dynamically on the page after login, but I was unable to get it to work. If I add the username command into the url as you would with a php string, it gives me a page error. If I put it into the page, it doesn't fill in the name either. Is it possible, and if so, how would I accomplish this? I would actually like to display the first name rather than the username ideally, as I will be registering members manually myself.

Peter, this plugin is a work of art. Thank you.


July 11, 2012
9:55 pm
Forum Posts: 841


To display it on the page itself would be beyond the scope of the plugin. It handles only the redirection portion.

You could do a web search for something like "display wordpress logged in user". Good luck!