Title: Help using meta_value in a category__and array
Last modified: August 19, 2016

---

# Help using meta_value in a category__and array

 *  [shackep](https://wordpress.org/support/users/shackep/)
 * (@shackep)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/help-using-meta_value-in-a-category_and-array/)
 * I have been trying to replace ’66’ with “meta_value=issue_num” which is currently
   set to ’66’. It is not working. Is there a way to go about this?
 * I have tried: (meta_value=issue_num) and ‘meta_value’=>’value’ and still no joy.
   I have also tried creating global $issue=(meta_value=issue_num) and using that
   but still no progress.
 * `<?php query_posts(array('category__and' => array(20,66),'posts_per_page'=>-1));?
   >`

The topic ‘Help using meta_value in a category__and array’ is closed to new replies.

## Tags

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

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [shackep](https://wordpress.org/support/users/shackep/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/help-using-meta_value-in-a-category_and-array/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
