Title: Simple query_posts / meta_compare question.
Last modified: August 20, 2016

---

# Simple query_posts / meta_compare question.

 *  [vsaxena](https://wordpress.org/support/users/vsaxena/)
 * (@vsaxena)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/simple-query_posts-meta_compare-question/)
 * `<?php query_posts($query_string . '&meta_key=type&meta_compare=>=meta_value=
   $hello'); ?>`
 * What’s wrong with that code? It doesn’t work. Neither does the following.
 * `<?php query_posts($query_string . '&meta_key=type&meta_compare=>=meta_value='.
   $hello); ?>`
 * Thanks so much!!

The topic ‘Simple query_posts / meta_compare question.’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [vsaxena](https://wordpress.org/support/users/vsaxena/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/simple-query_posts-meta_compare-question/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
