Skip Navigation

[Resolved] How can several loops use the same template for each item?

This support ticket is created 7 years 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
- 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 6 replies, has 2 voices.

Last updated by Francisco Ramón Molina Busquiel 7 years ago.

Assisted by: Minesh.

Author
Posts
#592293
2017-11-22_21-14-42.jpg
2017-11-22_21-10-01.jpg

I have changed the name of the view_template, but it is not changed in the name of the template.
How can I make this 'loop' use an existing template that has created a different 'loop'?

Thanks for your help.

Best regards,
Francisco R.

#592350

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - When you edit your archive view, within the Loop Output editor you will find button "Content Template", simply click on that button and you will know further what to do. Please check following screenshot.
=> hidden link

More info:
=> https://toolset.com/documentation/user-guides/normal-vs-archive-views/

#592410
2017-11-23_9-49-22.jpg
2017-11-23_9-48-30.jpg

But, templates that are using other loops are not shown in the content template selector.
This is correct?
Look at the screenshots.

#592440

Minesh
Supporter

Languages: English (English )

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

Well - I see "Loop item in View-For-Blog" content template is already assigned to another view and that is the reason it's not displaying withing the dorpdown select box when you click on "Content Template" button.

Now, I would like to know, did you use "Loop Wizard" button to build your output?

#592448

Yes. I used the 'loop wizard'.
That is, the content templates that have been created by the 'loop wizard' can not be used by other loops?

#592507

Minesh
Supporter

Languages: English (English )

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

Well - As you used "Loop Wizard" the only way to remove current content template is you need to run loop wizard again and make sure you do not create content template using loop wizard.

So basically, when you create content template using loop wizard it will not allow you to add at multiple places so create individual content template and then add to multiple views as required.

#592508

Ok. Thanks Minesh.