heronco
Forum Replies Created
-
Actually, the PHP is in the shortcode – not the custom tab.
For anyone else needing this, it IS crazy simple. I was trying to capture $uid through shortcode_atts, and making it too complicated.
To pull in the user ID of the current profile – or any other page that includes the uid in the URL – add this line to your shortcode:
$uid = $_GET[‘uid’];Then you can use $uid to pull any meta value you need from the WordPress database for that user.
Forum: Plugins
In reply to: [Participants Database] [record_link] only sending part of URLThat was it! The “Root Relative” plugin that’s installed by default on new WordPress install by Liquid Web was the cause. Love the plugin – thank you so very much.
Forum: Plugins
In reply to: [Participants Database] [record_link] only sending part of URLThank you for the quick reply! I’ve checked the settings, and under ‘Participant Record Page’ I have selected the page ‘Complete Your Registration.’ Here’s a copy/paste from the email: ‘You may complete your registration by visiting this private link at any time: /signup/complete-your-registration/?pid=xxxxx.’ (I’ve x’d out the pid, that came through correctly.) So it is pointing to the “Complete Your Registration’ page correctly, but it is missing the .com portion of the URL.
I thought that maybe the subpage would be throwing it off, so I tested with a root level page, and got the same result. For some reason it doesn’t appear to be pulling the base URL.
Any ideas?