Skip Navigation

[Resolved] Use multiple times in one View

This thread is resolved. Here is a description of the problem and solution.

Problem:

The user wanted to know if it was possible to include multiple in a view.

Solution:

You're not able to have multiple in a single view.

However you can create another view and add it to this view.

This support ticket is created 5 years, 11 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.

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

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by Ben 5 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#1160752

Ben

I have a need to use

<wpv-loop>

multiples times within one view, so I can output the query multiple times, without having other fields duplicate each time.

Is there any way I can do this on one View? Or should I create a separate View for this and insert it into another view which holds the other fields?

#1160841

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ben,

You're not able to have multiple <wpv-loop> in a single view.

However you can create another view and add it to this view.

Could you provide some more information on what you're trying to achieve to see if I can make a better suggestion for you ?

Thanks,
Shane

#1161702

Ben

Thank you for your reply Shane!

I have a table displaying different Custom Fields in one View. Then I need to display the results of a certain query multiple times in different places within the table. If I leave the <wpv-loop> tags around the Custom Fields as well, these seem to reproduce the same amount of times as the Query results. The only way I have found to counteract this, is to have the fields outside of the <wpv-loop> tags, but then i need to have the Query results outputted in more than one place, so this would not likely work.

Creating a separate view and adding it to this view seems like the best way to achieve this, unless you have any alternatives?

#1161748

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ben,

Based on what you want to achieve, the best way is as you mentioned creating separate views and adding it to the main view.

Thanks,
Shane

#1162066

Ben

Thank you for your help Shane.