Advanced Custom Fields plugin to allow for dynamic choices (through SQL queries)
| Author: | Eli Gassert (profile at wordpress.org) |
| WordPress version required: | 3.0.1 |
| WordPress version tested: | 3.9.1 |
| Plugin version: | .5 |
| Added to WordPress repository: | 16-07-2014 |
| Last updated: | 16-07-2014
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
| Rating, %: | 100 |
| Rated by: | 1 |
| Plugin URI: | http://steppingback.com/project/acf-dynamic-c... |
| Total downloads: | 5 643 |
| Active installs: | 10+ |
![]() Click to start download |
|
If you've ever needed your ACF choices to be dynamically generated by a SQL query, this plugin will help you get the job done.
You can mix and match static choices with dynamic, SQL-based choices by placing as many regular choices in the list as you'd like, followed by the special %%QUERY%% choice that will tell this plugin to load choices dynamically from the database.
An example on how to list users, setting the id as the value, would look like this:
%%QUERY%% : SELECT user_nicename AS text, id AS value FROM wp_usersChangeLog
