Passing a field as a variable
-
Hiya, so I absolutely love the plugin! It does everything I need, but there’s an issue when I’m calling one of the fields. The way I have my WP configured is that
field useris the user’s ID, but I want it to display the user’s name. I’m attempting to storefield useras a variable and then pass it through the link, but I’m not having much success. I can’t usefield authorbecause this is a custom post and the author isn’t actually the field I want to display.Any help would be greatly appreciated, I’ve included my attempt below:
[loop type=user_award count=10 custom=true] [set awarded_user_id][field user][/set] <a href="/user/[field user]">[pass vars][users include={awarded_user_id}][user name][/users][/pass]</a> received the [link][field title][/link] award on [field date]. [/loop]
The topic ‘Passing a field as a variable’ is closed to new replies.