Adding username as variable in a url redirect
-
Ok, first off, if this has been answered, or is the wrong forum, i sincerely apologize, and for what its worth, ive spent hours scouring google, etc. trying to patch this together myself. I have very little, to no experience with php, and im assuming thats where the answer to this lies, so again, i apoligize, and pretend youre explaining it to your 5 year old lol. ok… I want to call a url in an iframe on a page (in WP obv) and want to call the username as a variable in that url. So something like
//
<iframe src=”https://example.com/whatever.php?part=$variable_here”> </iframe>so from what ive gathered, i can call wp_get_current_user into a variable named $variable_here and that should work. However, where im lost is, the very little background I have is in straight oldschool html, and WP, and this is completely layman’s, is all php/css based? So is it possible to call that within a page? Can I edit/create a php file in dreamweaver to do this, and then call that within a page? Can it just be done from within wordpress? Am i completely lost? lol.. any help, even just a nudge in the right direction would be beyond appreciated. Thanks so much!
- The topic ‘Adding username as variable in a url redirect’ is closed to new replies.