Skip Navigation

[Résolu] Layout for Event Archives fails

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem: I am only able to see information about one post in my archive.

Solution: When using Layouts, be sure to add a WordPress Archive cell to the archive Layout.

Relevant Documentation:
https://toolset.com/documentation/getting-started-with-toolset/customize-post-archives/designing-archives-with-toolset-layouts/

This support ticket is created Il y a 5 années et 12 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
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)

Ce sujet contient 5 réponses, a 2 voix.

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

Assisté par: Christian Cox.

Auteur
Publications
#1162151

WIth WP 5 + latest ToolSet plugins I created a custom post "event" with custom fields and a special seach view.

Everything works as planned

lien caché is my search event view
lien caché is the detail page of event1
lien caché is the detail page of event2

lien caché is the event archive wich displays both event (event1 and event2)

but when I created an event archive layout (lien caché) with toolset now lien caché only displays event1. Event2 is no longer displayed on the archive page

What did I forgot please ?

thanks

cyril

#1162152

I must add that if I create the event archive from the lien caché the archive page result is good.

but If I create it from the layouts page (lien caché) I only see the first event in the archive page

thanks

cyril

#1162491

Hi, can you take a screenshot of the Layout editor in wp-admin so I can see how your archive Layout is put together? If a WordPress Archive cell is used in the Layout editor, please copy + paste the contents of the WordPress Archive Loop for me to review.

#1163039
wp_archive.JPG
create-archive-layout4.JPG
create-archive-layout3.JPG
create-archive-layout2.JPG
create-archive-layout1.JPG
before_creating_layout.JPG

Hi Christian

I can't understand why there are two locations where we define archives for a custom post: the WP archives and the layouts

I attach screenshots:

before_creating_layout.JPG: the ToolSet dashboard without creating a layout for the events archives
wp_archive.JPG : the archive definition for the events

at this time the lien caché displays ALL the events

Now, from the ToolSet dashboard if I click on the "create archive" button I go to lien caché
with the following screenshots sequence

create-archive-layout1.jpg
create-archive-layout2.jpg
create-archive-layout3.jpg
create-archive-layout4.jpg

and now lien caché only displays "event1"

Thanks for your help !

cyril

#1163150

Okay the problem here is you are trying to use a Visual Editor cell to display the archive results in this Layout. If you place a Visual Editor cell, there is no "loop", so only one post will be displayed. Instead, you should insert a WordPress Archive cell. Then in that cell, you can select the WordPress Archive you already created for Events or you can create a new WordPress Archive.
More information about using Layouts with WordPress Archives here: https://toolset.com/documentation/getting-started-with-toolset/customize-post-archives/designing-archives-with-toolset-layouts/

#1163175

My issue is resolved now. Thank you!