My site allows the public to contribute posts. When doing so, they fill a custom field listing their name. I would like to list all contributors to the site in one place.
Can I create a view which will:
- go through all posts on the site
- pull the value from the 'Contributor' custom field from each post
- remove duplicates
- display what is left in an alphabetical list
Thanks!
Hello,
There isn't such kind of built-in feature within Toolset, you might consider custom codes, for example this thread:
https://wordpress.stackexchange.com/questions/196262/list-all-unique-custom-field-values
That's a shame, but thanks!
Just to check - would I be creating a view with this code? I wanted to display the list in a widget, but don't think I can use code in there, no? Do I need to create a view with this code and display this view as a widget?
Since it is a custom code, Views does not support those custom codes, you can create a shortcode with custom PHP codes:
https://codex.wordpress.org/Function_Reference/add_shortcode
Then display above shortcode into a text widget.