Skip Navigation

[Resolved] view html doesn't seem to be rendering correctly, one item appears outside loop?

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

This topic contains 2 replies, has 2 voices.

Last updated by dallasS 4 years, 8 months ago.

Author
Posts
#1542827
Screenshot 2020-03-06 22.23.14.png
Screenshot 2020-03-06 22.19.38.png

So, it might just be me... but shouldn't the first image in this loop be INSIDE the "wpv-view-layout-4565" div??
i've attached the chrome inspector results and the view code...

trying to style my page, and want a container div for the full loop, and then nested divs for each item in the loop.
but can't figure out why first item is entirely outside the div that the rest of the items are in.

#1542913

Well, you have added the Loop Item (wpv-post-body shortcode) twice, once in the loop, once outside the loop.
So it's displaying one item outside the loop (the first in the query) and all other items + the first inside the loop, as it is expected.

I suggest to just remove the first post body call in the View Editor for the loop, at the very top of it.

#1544887

My issue is resolved now. Thank you!
just for the record tho... it was the wizard that did that...
i didn't write the loop.

and i used the wizard multiple times trying to fix it... so maybe it didn't overwrite itself? maybe it's not meant to and I wasn't paying attention...
either way... thank you for pointing out the problem! I was just assuming the wizard wrote the loop correctly and obviously didn't look closely enough!