• Hi thanks for your help.

    I currently have a long form that has a few repeaters on it. Some of the content is shown again on a few other pages.

    
    [loop type=afiaboutcontacts]
      [field contact_page_title]
     [content]
      Email: [field new_south_wales_division_email]
      Phone: [field new_south_wales_division_phone]
      Description: [field new_south_wales_division_phone]
    [/loop]
    

    I am not sure what [content] does is it to make the Phone etc. show? Will it not show without it?

    Also do I put the repeater within that [loop][/loop]? I tried the repeater without the loop but it would not work on a page.
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • 1. [content] is to display the content of the post. Has nothing to do with your fields.
    2. What repeater? Where is the repeater field – in the page your showing or in some other content. If in the page your showing – no loop. If in other content – loop or direct access to repeater rows with [repeater field_name row=1 sub=title]

    Thread Starter nanny7

    (@nanny7)

    Hi thanks,
    The [content] doesn’t ever show anything it is always blank. But I did get the repeater to work. I had to remove the repeater and start again and it worked.
    Can you have multiple of these on the page for the same custom post type?
    I have to separate them.

    Thanks again.

    You can use as many repeaters you like.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can I add repeater in loop? Also what does [content] do?’ is closed to new replies.