Title: Help using an array to display posts
Last modified: August 20, 2016

---

# Help using an array to display posts

 *  [mortalwombat](https://wordpress.org/support/users/mortalwombat/)
 * (@mortalwombat)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/help-using-an-array-to-display-posts/)
 * I am working on a custom theme for an existing wordpress install. It uses a Favorites
   plugin that allows people to bookmark their favorite posts. The plugin includes
   a function that allows you to get the IDs of the bookmarked posts for a logged
   in user. If you output that array, you get something like `Array ( [3] => 6309[
   4] => 6411 [5] => 6408 )`
 * I am trying to use that with query_posts(), but it’s not working. I’m guessing
   this is because the array contains the keys? If so, how do I work it so that 
   it’s not a problem. If it’s not, could someone give me some direction? Sorry,
   I am still trying to wrap my head around arrays :/

The topic ‘Help using an array to display posts’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [mortalwombat](https://wordpress.org/support/users/mortalwombat/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/help-using-an-array-to-display-posts/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
