Loop at repeating wpcf-field with [array] and [pass]
-
Hi,
first of all: Thanks a lot for this plugin – I am using it in a lot of diffent ways on my website and never had any mentionable problems. But as time went by, I came across my first major problem … and here it is.
I’ve been using Types quite a while now. There, I created a custom post-type. It has a custom repeating field named wpcf-part_id. Now, I want to use the values per post to build an external link to every part for every post – kind of this:
Post A <ul> <li>http://lorem.ipsum/part_id[0]</li> <li>http://lorem.ipsum/part_id[1]</li> <li>...</li> </ul> Post B ...I guess I have to use
[array user-field=wpcf-part_id]inside the post loop, as nothing else seem to work. By now, i have:[loop taxonomy=category term=A field=wpcf-B value=C compare=and orderBy=field_num key=wpcf-D order=ASC] <strong>[field title]</strong> [array user-field=wpcf-part_id] [field wpcf-part_id] <br /> [pass field_loop=wpcf-part_id] lorem {FIELD} ipsum [/pass] <br /> [pass field=wpcf-part_id] lorem {FIELD} ipsum [/pass] [/array] [/loop]… which is resulting in …
Title A 3956, 93274, 42446, 2436, 44728, 99780, 99781, 99207, 98287, 2422 lorem 3956 ipsum lorem (Array) ipsum Title B ...How can I separate the array values properly and process them all? The
field_loop-try seems close, but it just returns the first value.Thanks in advance
Tobias
The topic ‘Loop at repeating wpcf-field with [array] and [pass]’ is closed to new replies.