Hello,
I am trying to use usermeta that has multiple values that are submitted via checkboxes, but cannot get a single value to display.
My ideal usage is actually for a larger project of creating a staff portal.
I created a new user type called Staff, and a new custum user field for "employee type". There are 5 types of employees, and I want to be able to create a conditional statement that gives access to certain content based on the employee type.
I tried multiple ways of making this work, but I can't seem to drill into the usermeta data to grab a single value from the array.
1...[wpv-user field="wpcf-portal-staff-type" separator=", " index="0"] ... this displays the entire array.
2...[wpv-user field="wpcf-portal-staff-type" separator=", " index="1"] ... this displays the entire array.
3...[wpv-user field="wpcf-fields-checkboxes-option-1bc875802f7cd80318e2856c04d94805-1" separator=", "] ... this displays nothing.
4...[types usermeta="wpcf-portal-staff-type" separator=", " index="0"][/types] ... this displays nothing.
5...[types usermeta="portal-staff-type" separator=", " index="0"][/types] ... this displays nothing.
6...[types usermeta="wpcf-portal-staff-type" separator=", "][/types] ... this displays nothing.
If you have a suggestion on a better way to approach this, I would appreciate it.
Also, for your information, I will be allowing the managers/admins to create content within this website, and would love it if they had control over the content access, so when they created a new page or post, they would be able to wrap the content in a specific shortcode that locked the content down based on that employee type usermeta and how the current user's usermeta matches.
I hope this makes sense.
Thanks!