WordPress.org

Support

Support » Plugins and Hacks » [Resolved] WP_Query and dropdowns

[Resolved] WP_Query and dropdowns

  • I have a WP_Query that filters by a field that was defined through a dropdown—but the meta value for it is actually ‘dropdown_num_9’ or whatever, not the actual dropdown value, so this meta_query fails to find anything:

    'meta_query' => array(array(
      'key'     => '_simple_fields_fieldGroupID_3_fieldID_6_numInSet_0',
      'compare' => '=',
      'value'   => $category
    ))

    What is the best way to ask the simple-fields for all the dropdown values and keys ahead of time so that I can bake the WP_Query to look for the pre-baked key values and bypass this grief?

    http://wordpress.org/extend/plugins/simple-fields/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] WP_Query and dropdowns’ is closed to new replies.