Skip Navigation

[Résolu] views layout 1 large post 2 small post 1 large post 2 small posts layout

This support ticket is created Il y a 5 années et 1 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 1 réponse, has 2 voix.

Last updated by Minesh Il y a 5 années et 1 mois.

Assisted by: Minesh.

Auteur
Publications
#1212877
Optimized-bm-home-content.png

Tell us what you are trying to do?

I would like to make a view using multi-content types and mimic the layout attached. 1 large image/post and 2 small image post and repeated several times 1 large 2 small 1 large 2 small 1 large 2 small... ect.

Can this be done with views, if so, how?

Thanks,

#1212992

Minesh
Supporter

Languages: Anglais (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - what if you try to use the odd/even attribute to achieve this.

For example:

  <wpv-loop>
  [wpv-item index=odd]
     /// add your two column HTML here
  [wpv-item index=even]
   /// add your large image post here
</wpv-loop>

More info:
=> https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-item
=> https://toolset.com/documentation/user-guides/digging-into-view-outputs/#loop-shortcode-wpv-item-and-the-index-parameter

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