Title: Templates &#8211; Each loop
Last modified: March 7, 2019

---

# Templates – Each loop

 *  Resolved [dstapler](https://wordpress.org/support/users/dstapler/)
 * (@dstapler)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/templates-each-loop/)
 * Hi,
 * I have a field that is using a Relationship field to Calendar – Days of the Week.
   I call it vp_days_of_the_week.
 * in my template, what would I use to get the day to output? This doesn’t work.
 *     ```
       [each vp_days_of_the_week]
         <li>{@day}</li>
       [/each]
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Jim True](https://wordpress.org/support/users/jimtrue/)
 * (@jimtrue)
 * [7 years ago](https://wordpress.org/support/topic/templates-each-loop/#post-11304158)
 * Unfortunately, you can only get at the ‘value’ of the items in a Simple Custom
   Defined List, not the ‘label’ as defined in this GitHub issue: [https://github.com/pods-framework/pods/issues/3080](https://github.com/pods-framework/pods/issues/3080)
 * You can get the ‘array’ value of the day of the week by using `{@_value}` inside
   the each.
 * If you’re okay with just getting the multiple list (ie Monday, Wednesday, and
   Friday), you can just output `{@vp_days_of_the_week}`.
 * As a workaround, you can create another post type for ‘days-of-the-week’ with
   the Monday-Sunday as the post-title and use that as a relationship instead.

Viewing 1 replies (of 1 total)

The topic ‘Templates – Each loop’ 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/)

## Tags

 * [each](https://wordpress.org/support/topic-tag/each/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jim True](https://wordpress.org/support/users/jimtrue/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/templates-each-loop/#post-11304158)
 * Status: resolved