use shortcode in link?
-
hi,
i thought i had this working but it seems not too, at least now that i’ve changed get_currentuserinfo to wp_get_current_user.
i want to use the plugin shortcode in a link, where ‘mysite.com/[client]’ redirects a logged in user to a specific page dependent on their username. the page name is the same as the username, so client1’s page is called ‘client1’, client2’s page is ‘client2’ and so on.
my function code for [client] is:
global $userdata; wp_get_current_user(); echo( $current_user->user_login );but this now redirects the link back to the site homepage.
i would also want to make a link such as ‘mysite.com/[client]/payment’ but that presumes that i can even get the first link to work!any assistance would be appreciated!
thanks in advance.
- The topic ‘use shortcode in link?’ is closed to new replies.