Attempting to customize the list of users displayed based upon a custom field in a channel entry.
{exp:channel:entries channel="messages"} {exp:user:users group_id="{member_groups backspace="1"}{option_name}|{/member_groups}"} {email} - {group_id} {/exp:user:users} {/exp:channel:entries}
The 'member_groups' custom field will output the chosen groups in this format...
group_id="7|8|9"
No matter what, I always get the logged in super admin account as a result. Is this possible with User or do I need to use a query here?
Would really prefer to not have to use an embed since I also need to this to work for sending email notifications when a new entry is posted to the messages channel.
Thanks!
member_groups
custom field? That can make a difference. Also, did you turn on Template Debugging to see ifgroup_id=""
contains parsed and accurate data?