Title: [Plugin: Developer&#039;s Custom Fields] options_type = terms.. and options_query?
Last modified: August 20, 2016

---

# [Plugin: Developer's Custom Fields] options_type = terms.. and options_query?

 *  [Unsal Korkmaz](https://wordpress.org/support/users/unsalkorkmaz/)
 * (@unsalkorkmaz)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-developers-custom-fields-options_type-terms-and-options_query/)
 * I tried;
 *     ```
       array(
           'name'			=> '3',
           'label'			=> '3',
           'type'			=> 'select',
           'scope'			=> array( 'post' ),
           'options_type'	=> 'terms',
           'options_query'	=> array( 'taxonomy' => 'konum' ),
           'capabilities'	=> array( 'edit_posts' )
       ),
       ```
   
 * or
    `'options_query' => array( 'terms' => 'konum' ),` or `'options_query' => 
   array( 'konum' ),` or `'options_query' => array( 'tax_query' => 'konum' ),` i
   couldnt get terms.. what should be options_query?
 * [http://wordpress.org/extend/plugins/developers-custom-fields/](http://wordpress.org/extend/plugins/developers-custom-fields/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Steve Taylor](https://wordpress.org/support/users/gyrus/)
 * (@gyrus)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-developers-custom-fields-options_type-terms-and-options_query/#post-2354767)
 * Check slt-cf-init.php lines 471-486:
 *     ```
       $args = $field['options_query'];
       $taxonomies = $args['taxonomies'];
       ```
   
 * Sorry, the docs could probably be better for this. I guess it should be:
 * `'options_query' => array( 'taxonomies' => 'konum' )`
 * Then you can add other key/values that will get passed through as the `$args`
   parameter for `get_terms`.
 *  Plugin Author [Steve Taylor](https://wordpress.org/support/users/gyrus/)
 * (@gyrus)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-developers-custom-fields-options_type-terms-and-options_query/#post-2354769)
 * I’ve updated the docs:
 * [http://sltaylor.co.uk/wordpress/plugins/slt-custom-fields/docs/#functions-boxes-fields](http://sltaylor.co.uk/wordpress/plugins/slt-custom-fields/docs/#functions-boxes-fields)
 * Let me know if this works – I’m currently travelling and I haven’t had the chance
   to double-check this!
 *  Thread Starter [Unsal Korkmaz](https://wordpress.org/support/users/unsalkorkmaz/)
 * (@unsalkorkmaz)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-developers-custom-fields-options_type-terms-and-options_query/#post-2354828)
 * Yeah it gots taxonomies now.. but.. not caring parent/child taxonomy.
    Can you
   check this solution: [http://wordpress.stackexchange.com/questions/18578/taxonomy-dropdown-metabox-in-the-back-end](http://wordpress.stackexchange.com/questions/18578/taxonomy-dropdown-metabox-in-the-back-end)?
   That solution is pretty cool working. is it possible to implement this?
 * or is it possible to insert custom solutions from outside to Developer’s Custom
   Fields’ metabox?
 *  Plugin Author [Steve Taylor](https://wordpress.org/support/users/gyrus/)
 * (@gyrus)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-developers-custom-fields-options_type-terms-and-options_query/#post-2354832)
 * Handling hierarchical taxonomies should be in the next version.
 * Meantime, you can hack nearly anything you want with hooks. Check the docs:
 * [http://sltaylor.co.uk/wordpress/plugins/slt-custom-fields/docs/#hooks](http://sltaylor.co.uk/wordpress/plugins/slt-custom-fields/docs/#hooks)
 * Especially `slt_cf_populate_options`.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Developer's Custom Fields] options_type = terms.. and options_query?’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/developers-custom-fields.svg)
 * [Developer's Custom Fields](https://wordpress.org/plugins/developers-custom-fields/)
 * [Support Threads](https://wordpress.org/support/plugin/developers-custom-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/developers-custom-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/developers-custom-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/developers-custom-fields/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Steve Taylor](https://wordpress.org/support/users/gyrus/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-developers-custom-fields-options_type-terms-and-options_query/#post-2354832)
 * Status: not resolved