[Plugin: More Fields] Feature Suggestion: Populated Dropdowns
-
There are a handful of other plugins that offer similar ‘design meta boxes in UI’ capabilities through a variety of implementation approaches. The More… series offer the best user experience from what I have experimented with (Custom Field Template, Custom Post Type UI, PODS, etc).
One feature I’d really like to see a More… implementation of that Custom Field Template (CFT) supports is to be able to specify source list for a drop-down via PHP code tied to a field as this code sample generates:
//Display Clients in Array global $wpdb; $clients = $wpdb->get_results ("SELECT post_title, post_name FROM $wpdb->posts where post_type = 'clients' and post_status = 'publish' order by post_title ASC"); $clientCounter = 0; $values=array(); foreach ($clients as $client) { $values[$clientCounter] = '<!-- //' . $client->post_name . ' -->' . $client->post_title; $clientCounter++; }
If, in addition to Values as “permit(ing) a list of pre-defined values” you could also specify post type(s), taxonomy(ies) or filtered lists of post types based on taxonomy(ies) that apply to them, this would be a great addition. It would simplify the data entry view of, for example, a robust portfolio data capture interface, from dozens of taxonomy or post type selectors.
One case example I used CFT for to achieve this involved the following post types:
- Projects
- Clients – who the projects are done for
- Collatoral – Documents prepared during the project
- Services – Corporate skills applied on the project
- Staff – Who was project manager, what team members?
Although operating in a different plugin solution space, the Gravity Forms Custom Post Type Plugin allows such data-capture on the front-end to occur without significant code to populate the fields.
Thoughts?
- The topic ‘[Plugin: More Fields] Feature Suggestion: Populated Dropdowns’ is closed to new replies.