I'm working on my website and I'm having some trouble with PHP syntax. I just want to say "Welcome, [name]" when users are logged in. I'm working on Wordpress and I'm using a plugin to work with users. So, as I want to align the text on the right side of the website, I have this:
print"<p align=\"RIGHT\">Welcome, </p>";
But now I need to insert the name. For doing that I have a shortcode:
[user-data field_name="Name"]
I'm trying to put those things together, but is not working. I'm using do_shortcode, but I don't know how to put that together.
do_shortcode('[user-data field_name="Nombre"]')
Hope someone can help me. thank you very much!