Title: Custom Field: Relation?
Last modified: August 22, 2016

---

# Custom Field: Relation?

 *  [PoetikDragon](https://wordpress.org/support/users/poetikdragon/)
 * (@poetikdragon)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/custom-field-relation/)
 * It would be nice if a new custom field type was added, called “relation” or something
   similar. It would be used for associating one post with another. It should let
   you pick the post type and possibly filter the available options. In the editor,
   it would display as a select.
 * Example: Custom post type “Dogs” with custom fields group “Pedigree.” Add a new
   relation field called “Father.” Choose “Dogs” as the post type it links to. Limit
   it to dogs with male gender (another custom field). In the editor you could then
   choose from other male dogs as the father. They should be sorted alphabetically.
 * [https://wordpress.org/plugins/types/](https://wordpress.org/plugins/types/)

Viewing 1 replies (of 1 total)

 *  [Waqas Bin Hasan](https://wordpress.org/support/users/waqasb/)
 * (@waqasb)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/custom-field-relation/#post-5573880)
 * Usually you can relate different CPTs to each other in Types by specifying Parent/
   Child relationship. But to relate a particular post with another post, there’s
   a concept of hierarchical posts. You can also setup your CPT to be hierarchical
   in the Types.
 * I will suggest to take a look at these articles from Types Users Guide:
 * – [http://wp-types.com/documentation/user-guides/creating-post-type-relationships/](http://wp-types.com/documentation/user-guides/creating-post-type-relationships/)
   –
   [http://wp-types.com/documentation/user-guides/many-to-many-post-relationship/](http://wp-types.com/documentation/user-guides/many-to-many-post-relationship/)–
   [http://wp-types.com/documentation/user-guides/creating-groups-of-repeating-fields-using-fields-tables/](http://wp-types.com/documentation/user-guides/creating-groups-of-repeating-fields-using-fields-tables/)–
   [http://wp-types.com/documentation/user-guides/display-fields-table-content-using-views-or-the-types-api/](http://wp-types.com/documentation/user-guides/display-fields-table-content-using-views-or-the-types-api/)

Viewing 1 replies (of 1 total)

The topic ‘Custom Field: Relation?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/types_ced1d3.svg)
 * [Toolset Types - Custom Post Types, Custom Fields and Taxonomies](https://wordpress.org/plugins/types/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/types/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/types/)
 * [Active Topics](https://wordpress.org/support/plugin/types/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/types/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/types/reviews/)

## Tags

 * [association](https://wordpress.org/support/topic-tag/association/)
 * [custom field](https://wordpress.org/support/topic-tag/custom-field/)
 * [many-to-many](https://wordpress.org/support/topic-tag/many-to-many/)
 * [relation](https://wordpress.org/support/topic-tag/relation/)

 * 1 reply
 * 2 participants
 * Last reply from: [Waqas Bin Hasan](https://wordpress.org/support/users/waqasb/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/custom-field-relation/#post-5573880)
 * Status: not resolved