Skip Navigation

[Resolved] Advice for a Loop setup

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 6 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 3 voices.

Last updated by Christian Cox 6 years, 9 months ago.

Assisted by: Christian Cox.

Author
Posts
#628737
Page-with-loop-of-items.PNG
Current-loop-setting.PNG

Hello,
I have created a View from which different posts from a CPT should be looping and displayed vertically.
Every second post there has been set to have a light background and every first to have dark background.
I thought that everything was set right until I posted a third item to be shown in the page. Now this third post is overflowing on my second one instead of being below it. I am providing a screenshot of my loop setting, I would really appreciate if you can give me an advice how to fix this.

hidden link

Thanks in advance.
Kind regards and have a successful day!

#629307

The issue is not visible here:
hidden link

Can you let us know where we see the problem?

Your Loop seems to wrap only the first item in the dark DIV, the rest is output light.

But, this is as well not what I see on the link.

Maybe this is from another site?
Then we need the proper links to see it if there are any or the steps on how you replicate this issue.

To address items in a loop by skipping one, you can use the "odd" attribute:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-item > odd.

#629609

Hi @Beda ,
This was the correct link provided but I had to change it so the client to check how the products on the page are displayed. I have managed to show the items but only with the dark background cover there.

I will test the "odd" attribute and post here if I have managed to make loop of the backgrounds work.

Thanks for the advice.
Have a good day!

#629677

Thanks. Let us know how this works out for you.

#629680

Hi, I'm Christian, and Beda asked me to follow up if you have any questions.

The forum ‘Types Community Support’ is closed to new topics and replies.