Title: ACF Dynamic Choices
Author: grexican
Published: <strong>ޖުލައި 16, 2014</strong>
Last modified: ޖުލައި 16, 2014

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/acf-dynamic-choices.svg)

# ACF Dynamic Choices

 By [grexican](https://profiles.wordpress.org/grexican/)

[Download](https://downloads.wordpress.org/plugin/acf-dynamic-choices.0.5.zip)

 * [Details](https://dv.wordpress.org/plugins/acf-dynamic-choices/#description)
 * [Reviews](https://dv.wordpress.org/plugins/acf-dynamic-choices/#reviews)
 *  [Installation](https://dv.wordpress.org/plugins/acf-dynamic-choices/#installation)
 * [Development](https://dv.wordpress.org/plugins/acf-dynamic-choices/#developers)

 [Support](https://wordpress.org/support/plugin/acf-dynamic-choices/)

## Description

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_users
    ```

### Arbitrary section

## Installation

 1. Upload `acf-dynamic-choices` folder to the `/wp-content/plugins/` directory. Alternatively,
    install the `zip` through the WordPress Plugins installer.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Place a query in your ACF choices box in this form: `%%QUERY%% : SELECT field1 
    AS text, field2 AS value FROM ....`
 4. Browse to a Post or the Options Page where you just added the dynamic query and
    ensure that the choices are properly being populated.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“ACF Dynamic Choices” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ grexican ](https://profiles.wordpress.org/grexican/)

[Translate “ACF Dynamic Choices” into your language.](https://translate.wordpress.org/projects/wp-plugins/acf-dynamic-choices)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/acf-dynamic-choices/),
check out the [SVN repository](https://plugins.svn.wordpress.org/acf-dynamic-choices/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/acf-dynamic-choices/)
by [RSS](https://plugins.trac.wordpress.org/log/acf-dynamic-choices/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### .5

 * Initial public release

## Meta

 *  Version **.5**
 *  Last updated **12 years ago**
 *  Active installations **10+**
 *  WordPress version ** 3.0.1 or higher **
 *  Tested up to **3.9.40**
 *  Language
 * [English (US)](https://wordpress.org/plugins/acf-dynamic-choices/)
 * Tags
 * [acf](https://dv.wordpress.org/plugins/tags/acf/)[Dynamic](https://dv.wordpress.org/plugins/tags/dynamic/)
   [query](https://dv.wordpress.org/plugins/tags/query/)[sql](https://dv.wordpress.org/plugins/tags/sql/)
 *  [Advanced View](https://dv.wordpress.org/plugins/acf-dynamic-choices/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/acf-dynamic-choices/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/acf-dynamic-choices/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/acf-dynamic-choices/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/acf-dynamic-choices/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/acf-dynamic-choices/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/acf-dynamic-choices/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/acf-dynamic-choices/reviews/)

## Contributors

 *   [ grexican ](https://profiles.wordpress.org/grexican/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/acf-dynamic-choices/)