• Sorry if this is a stupid question, but I’m trying to find a plugin or some javascript or something that will redirect to the user’s website URL in the user profile. I’m trying to code it up myself, and failing, I’m not sure how to get the user’s URL programatically. Anyone have any thoughts?

    Just to make it as clear as possible, in the basic WordPress user profile, there is a ‘Website’ field. I just want to redirect to that URL if the logged-in user clicks on a particular label in the navigation bar.

Viewing 1 replies (of 1 total)
  • That should be a data entry in that user’s table in the database so you could probably write a bit of PHP to jamb that URL into a meta refresh in a page that then gets called by clicking a link to the page with that meta refresh embedded in it.

    That URL will be different for every logged in user but you’d also want a default URL jambed in to cover a user clicking that button or link if they are not logged in.

    Maybe a page asking them to login or else sending them further into some page in your site rather than have them see a broken link or a 404.

Viewing 1 replies (of 1 total)
  • The topic ‘Redirect to URL in user’s profile (‘Website’ field)’ is closed to new replies.