Skip Navigation

[Resolved] Show images from post relationship but with offset

This support ticket is created 5 years, 5 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

This topic contains 1 reply, has 1 voice.

Last updated by Nicholas 5 years, 5 months ago.

Assisted by: Waqar.

Author
Posts
#1272369

Hello

I have the following view:


<wpv-loop>
          <div class="sfc-campaign-images">
            <div class="sfc-campaign-image sfc-campaign-single-image">
              <a href="[wpv-post-url]"><img align="top" class="sfc-campaign-image-left" src="[types field='channel_img' output='raw'][/types]" /></a>
            </div>
            <div class="sfc-campaign-image sfc-campaign-single-image">
              <a href="[wpv-post-url]"><img align="top" class="sfc-campaign-image-right" src="[types field='channel_img' output='raw'][/types]" /></a>
            </div>
          </div>
		</wpv-loop>

Instead of showing the image block 2 times I'd like to populate the first image with the first post that is connected to the post and then the second image with the second post that is connected to the post?

Do you know what I mean?

So that it looks something like this:

<div class="sfc-campaign-images">
<div class="sfc-campaign-image sfc-campaign-single-image">

</div>
<div class="sfc-campaign-image sfc-campaign-single-image">

</div>
</div>

Thanks for your help,
Nick

#1272939

My issue is resolved now. Thank you!