Title: [Plugin: OptionTree] Looping through OptionTree custom posts array
Last modified: August 20, 2016

---

# [Plugin: OptionTree] Looping through OptionTree custom posts array

 *  [samkitson](https://wordpress.org/support/users/samkitson/)
 * (@samkitson)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-optiontree-looping-through-optiontree-custom-posts-array/)
 * Hi,
    I have a custom post type which I’ve created a ‘Custom Posts’ option type
   for in the OptionTree plugin. This gives me an array of post IDs which is what
   I want. However, I can’t figure out how to write the loop to display the custom
   posts referred to in the array.
 * Please can anyone help? I’ll keep chipping away at my code in the mean time.
 * Many thanks in advance!
 * Sam

The topic ‘[Plugin: OptionTree] Looping through OptionTree custom posts array’ is
closed to new replies.

## Tags

 * [custom posts](https://wordpress.org/support/topic-tag/custom-posts/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [OptionTree](https://wordpress.org/support/topic-tag/optiontree/)

 * 0 replies
 * 1 participant
 * Last reply from: [samkitson](https://wordpress.org/support/users/samkitson/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-optiontree-looping-through-optiontree-custom-posts-array/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
