Cannot retrieve user meta in shortcode
-
I have progressively developed a customer shortcode that has worked correctly so far in a simple newsletter. However, I have added code (from ‘github’, originally without any changes) code in order to retrieve basic WordPress user meta data. However, I just cannot make it work.
I am not clear on how the WordPress ‘user_id’ value is established for use within the shortcode. That is, is it a stand-alone value that can just be used or must it be derived based on the ‘subscriber id’? If the latter, how is each ‘subscriber_id’ in the subscriber list passed into the shortcode in order to generate each email?
I can get my code to work if I can find a way to establish, within the shortcode, the WordPress user id value related to each subscriber in the newsletter subscriber list.
Any help would be appreciated.
- The topic ‘Cannot retrieve user meta in shortcode’ is closed to new replies.