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
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
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.
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
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/
My issue is resolved now. Thank you!