Title: Relation custom fields issue
Last modified: August 22, 2016

---

# Relation custom fields issue

 *  Resolved [teamZO](https://wordpress.org/support/users/teamzo/)
 * (@teamzo)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/relation-custom-fields-issue/)
 * hello,
    im trying to import Relation custom fields in the loop (in the homepage“
   index of website”)
 * (check this example code below)
 * >  <?php
   >  $args = array(‘showposts’=>25, ‘category’ => ‘category1′ ,’post_type’
   > =>’soccer’); $query = new WP_Query($args); while ( $query->have_posts() ) :
   > $query->the_post(); ?>
   >  <?php $my_array = get_custom_field(‘team’ , ‘to_link’);?>`
   >  <?php endwhile; ?>
 * plugin used:
    [https://wordpress.org/plugins/custom-content-type-manager/](https://wordpress.org/plugins/custom-content-type-manager/)

The topic ‘Relation custom fields issue’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [teamZO](https://wordpress.org/support/users/teamzo/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/relation-custom-fields-issue/)
 * Status: resolved