• Resolved andru26

    (@andru26)


    This is a very interesting plugin, however I don’t understand how to display repeater fields on a singular template page.
    I have 2 pods: products and accessories. A product can have multiple accessories, each one with title, image and description.
    Can you share an example for single product page on how to loop and display all accessories of a product by showing for each one title, image and description.

    Many thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Coding Panda

    (@codingpanda)

    Hi Andru26

    Sorry for the delay. I just noticed your post.

    You can use pods_field(). e.g. in a single post template, pods_field( ‘field_name’ ) to fetch the data for the current page, otherwise use pods_field( ‘pods_name’, ‘post_id’, ‘field_name’ ) to fetch any data you want anywhere. To fetch data in the settings area, use pods_field( ‘pods_name’, false, ‘field_name’ ). To fetch data in the users area, use pods_field( ‘user’, ‘user_id’, ‘field_name’ ).

    I made a video to explain the basic use: https://youtu.be/8oUeROi62o8 It shows you how to use pods_fields() to fetch the data from a repeater field on a singular template page.

    Any questions, just let me know.

Viewing 1 replies (of 1 total)
  • The topic ‘How to display repeater fields on single page’ is closed to new replies.