Skip Navigation

[Resolved] two different field together

This support ticket is created 4 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 4 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#1631127

Tell us what you are trying to do?
I have 2 repeating fields:
URL and url title
How can I make a list of links where the utl title have the url link field?
like this:
url title

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#1631409

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I would like to point out here that repeating field is not the correct option here because lets say with URL repeating field you have 5 instances and with the title repeating field you have only 3 instances. I hope you got my point.

What if you setup your field as repeating field group were within the repeating field group, you should add URL and title.
=> https://toolset.com/documentation/getting-started-with-toolset/creating-and-displaying-repeatable-field-groups/

Does this make sense for you or you would like to go with repeating fields only?

#1631941

That would be the ideal, I get it, the problem is that it is a huge site imported from drupal using FG Drupal to WordPress plugin, which recommends toolset.
Considering all fields have the same number of entries, can it be done?

#1632177

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Considering all fields have the same number of entries, can it be done?
==>
Yes.

You can use the [wpv-for-each] shortcode:

For example:

<p>[wpv-for-each field="wpcf-stud-url"]
<li> <a href="[types field='stud-url' output='raw'][/types]"> [types field="stud-url-title"][/types] </a> </li>
[/wpv-for-each]</p>

Where:
- replace stud-url with your URL field slug
- replace stud-url-title with your title field slug.

If you use repeating field block, then you should use the "Display settings" tab for repeating field block and chose the "custom" option and add the above same code. Please check the following screenshot: hidden link

More info:
=> https://toolset.com/documentation/user-guides/custom-content/repeating-fields/