Having the same issue – on a main page login code I added. Need to force hard refresh and then it’ll show the content it’s supposed to. Anyone have suggestions? Not using caching.
Solution! I used a different php plugin and it worked fine! “Shortcode Exec PHP” plugin seems to do the trick. Thank you to everyone for your feedback!
Corrected using quotes in second method, still not working.
I inserted this code into a wordpress page. Using the plugin “Allow PHP in Posts and Pages” to allow the use of php. Maybe the plugin is causing it? Is there a better one? The source code is not showing the href code either.