Title: [Plugin: Custom Content Type Manager] Relation post
Last modified: August 20, 2016

---

# [Plugin: Custom Content Type Manager] Relation post

 *  Resolved [Matteo Legittimo](https://wordpress.org/support/users/mattleg/)
 * (@mattleg)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-custom-content-type-manager-relation-post-1/)
 * Hi!
    Really great, great plugin, the best one i think! 🙂 Im developping a custom
   content type, where u can choose to select other post for the same type, so there
   is a relation.
 * In the template im using this snippet:
 * $my_array = get_custom_field(‘casisimili:to_array’);
    foreach ($my_array as $
   items_id) { $post = get_post($items_id); print $post->post_title; }
 * How can i get also the first image inside the foreach of my custom field “image_field:
   to_array” ?
 * Thanks and im sorry for my bad english.
 * Matteo.
 * [http://wordpress.org/extend/plugins/custom-content-type-manager/](http://wordpress.org/extend/plugins/custom-content-type-manager/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Matteo Legittimo](https://wordpress.org/support/users/mattleg/)
 * (@mattleg)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-custom-content-type-manager-relation-post-1/#post-2571289)
 * i got it
 * $post = get_post($items_id);
    $my_array = get_custom_field(‘dopo_image:to_array’);
   $image_id = $my_array[0]; echo wp_get_attachment_url( $image_id );
 *  Plugin Contributor [fireproofsocks](https://wordpress.org/support/users/fireproofsocks/)
 * (@fireproofsocks)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-custom-content-type-manager-relation-post-1/#post-2571302)
 * Glad you got it. There are MANY ways of getting this data — as long as you found
   a solution.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Custom Content Type Manager] Relation post’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-type-manager_c9c790.
   svg)
 * [Custom Content Type Manager](https://wordpress.org/plugins/custom-content-type-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-content-type-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-type-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-type-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-type-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-type-manager/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [fireproofsocks](https://wordpress.org/support/users/fireproofsocks/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-custom-content-type-manager-relation-post-1/#post-2571302)
 * Status: resolved