Information about the inability to use variables that exist outside the tags of the Insert PHP code is at
http://www.willmaster.com/software/WPplugins/insert-php-wordpress-plugin-instructions.php#inandofitself
The page also has other information that may be of interest.
Because I’m not familiar with the project, I’m unprepared to recommend what to do instead. Sorry.
Will
-
This reply was modified 8 years, 9 months ago by
WillBontrager. Reason: clarification
Thread Starter
arr0w
(@arr0w)
Hi Will
Thank you for the quick reaction to my question.
The page did give some information of interest, but not what I was looking for.
To be very specific:
I want to put the displayname of the second role of a currently logged in user into a variable. Like I’ve done above. Then I can use the variable in some shortcodes afterwards. Do you know another way to do this?
Sorry, I don’t know how to do that within the constraints of Insert PHP.
Will