Title: Relationship
Last modified: August 31, 2016

---

# Relationship

 *  Resolved [WP100](https://wordpress.org/support/users/wp100/)
 * (@wp100)
 * [10 years ago](https://wordpress.org/support/topic/relationship/)
 * Hi,
 * I created a pod. The pod contains a field called “city”. Field Type is relationship
   and it is related to Simple (Cusom defined list).
    The list contains all cities
   names.
 * In the pod template I added the line:
    <p>city: [{@city}](https://wordpress.org/support/topic/relationship/{@city.guid}?output_format=md)
   </p>
 * When I click on a city’s name I get 404.
 * Is there a way to add a template for it or a PHP file? which PHP file name should
   it be?
 * Thank you.
 * [https://wordpress.org/plugins/pods/](https://wordpress.org/plugins/pods/)

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

 *  Thread Starter [WP100](https://wordpress.org/support/users/wp100/)
 * (@wp100)
 * [10 years ago](https://wordpress.org/support/topic/relationship/#post-7391923)
 * Hope this time the code line will not change after submit:
    The line I added 
   is `<p>city: <a href="{@city.guid}">{@city}</a></p>`
 *  Plugin Contributor [Jim True](https://wordpress.org/support/users/jimtrue/)
 * (@jimtrue)
 * [10 years ago](https://wordpress.org/support/topic/relationship/#post-7391993)
 * Simple Custom Defined Lists don’t have ‘links’ to link to, so the GUID wouldn’t
   get you anywhere.
 * If you’re attempting to have the City go to another page in your website, you
   need to create another Pod for City to track those kinds of details and add a
   Relationship to that Pod instead of just a Simple list. Simple Custom Defined
   Lists only have a Value or a Label and a Value. Nothing more.

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

The topic ‘Relationship’ is closed to new replies.

 * ![](https://ps.w.org/pods/assets/icon.svg?rev=3286397)
 * [Pods - Custom Content Types and Fields](https://wordpress.org/plugins/pods/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pods/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pods/)
 * [Active Topics](https://wordpress.org/support/plugin/pods/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pods/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pods/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jim True](https://wordpress.org/support/users/jimtrue/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/relationship/#post-7391993)
 * Status: resolved