Shortcode to embed Edit Account form not working
I’m creating a short code that shows both first and last name of the user if he’s logged in, or, if he’s logged in, but hasn’t configured any name, it will return a random name with a message telling him to edit his profile.
I’m succeeding into getting the names, but not into showing the text that should appear in case the user has no name. The code: