title: WP magic fields query_posts
body: <p>I'm trying to display titles from posts of type 'products' with that have a custom field "product_category" (dropdown) with value "food".</p>
  
  <p>When the "food" field is set to type "text" everything is fine. When I change the type of this 
  field to "dropdown" nothing appears.</p>
  
  <p>To create custom page and custom fields I use Magic Fields plugin in Wordpress.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>     &lt;?php
      global $wp_query;
      query_posts(array(
          'post_type' =&gt; 'products',
            'meta_query'  =&gt; array(
                     array(
                      'key'    =&gt; 'product_category',
                      'value'  =&gt; 'food',
                      )
                  ))    
  );
      while(have_posts()) : the_post(); ?&gt;
          &lt;?php $key = get_post_meta($post-&gt;ID, 'title'); ?&gt;
          &lt;li &lt;?php post_class(); ?&gt;&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php if($key) { echo $key[0]; } else { the_title(); }; ?&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;?php
      endwhile;
      wp_reset_query();
      ?&gt;
  </code></pre>