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 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Minesh Il y a 5 années et 8 mois.

Assisté par: 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

Les langues: Anglais (English )

Fuseau horaire: 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