Skip Navigation

[Resolved] Post archive with alternate layouts for odd and even rows

This support ticket is created 6 years 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
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 7 replies, has 2 voices.

Last updated by Christian Cox 6 years ago.

Assisted by: Christian Cox.

Author
Posts
#1164966

Tell us what you are trying to do? I wish to create a post archive where the featured image & content is left aligned in odd instances (image on the left), and right aligned in even instances (image on the right)
probably something similar to https://toolset.com/forums/topic/how-to-alternate-background-color-for-each-result-set-in-views/

Is there any documentation that you are following?

Is there a similar example that we can see? hidden link

What is the link to your site? hidden link

#1165073

Hi, it really depends on the type of loop you want to implement and the markup required for each row style. We offer the wpv-item shortcode and index attribute, which you can use to display odd/even items differently: https://toolset.com/documentation/user-guides/digging-into-view-outputs/#loop-shortcode-wpv-item-and-the-index-parameter

#1167688

I'm still trying to figure this one out, so give me a few more days. I'm working with Beaver Builder alongside Toolset, and am having a few issues with the two!

#1167957

No problem, let me know if you get stuck and I can offer advice.

#1168005

It appears there is little BB integration when it comes to images, e.g. photo module, doesn't offer toolset fields to select a custom image. Is that right, or am I missing something. I checked today and I have the latest versions of all plugins

#1168892

You are correct about the image module, it's not possible to select a Types custom field as the image source. Most integration with BB modules happens when the module input accepts text: https://toolset.com/documentation/user-guides/using-toolset-with-beaver-builder/designing-templates-for-custom-post-types-and-custom-fields-with-beaver-builder/#using-post-fields-inside-other-beaver-builder-modules

#1169392

I've just run into further issues where inserting a featured image field with a custom size (as a shortcode) doesn't appear to work, but selecting a pre-defined size seems to be OK.

New threads created by Christian Cox and linked to this one are listed below:

https://toolset.com/forums/topic/custom-size-featured-image-does-not-work-only-standard-sizes/

#1169837

We have a one topic per ticket policy, so I'm splitting your recent question into a separate ticket.