Skip Navigation

[Résolu] Show images from post relationship but with offset

This support ticket is created Il y a 4 années et 9 mois. 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.

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 réponse, has 1 voix.

Last updated by Nicholas Il y a 4 années et 9 mois.

Assisted by: Waqar.

Auteur
Publications
#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">
<a href="/connected-post-url-1"><img align="top" class="sfc-campaign-image-left" src="/connected-post-1-img" /></a>
</div>
<div class="sfc-campaign-image sfc-campaign-single-image">
<a href="/connected-post-url-2"><img align="top" class="sfc-campaign-image-right" src="/connected-post-2-img" /></a>
</div>
</div>

Thanks for your help,
Nick

#1272939

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.