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!
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.
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!
Thanks. Let us know how this works out for you.
Hi, I'm Christian, and Beda asked me to follow up if you have any questions.