Skip Navigation

[Resolved] The right way to create CPT and Taxonomy archives

This support ticket is created 7 years, 3 months 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by JackO 7 years, 3 months ago.

Assisted by: Nigel.

Author
Posts
#480037

Hello,

I want to style the archive pages for my custom post types and custom taxonomies. What is the right way to do this? When browsing through the documentation, I find 2 approaches

Approach 1

This approach uses a regular Layout template and the possibility to use the WordPress Archives cell, and the other functionality of Layouts.

https://toolset.com/documentation/user-guides/designing-pages-archive-templates-using-views-plugin/
https://toolset.com/documentation/user-guides/wordpress-archive-cell/

Approach 2

This approach uses the options on the Toolset->WordPress Archives page.

https://toolset.com/documentation/user-guides/normal-vs-archive-views/

In this approach, I miss the possibility of using other cells, Views and widgets on the archive page.

When browsing the support forums, approach 2 seems to be the most suggested way of creating archive pages. Why is it favoured over approach 1? And if approach 2 indeed is better, how to use widgets and other Views on the archive page?

Thank you!

#480230

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

How you customise the archive pages depends on whether you are using Layouts or not.

Views is responsible for generating custom WordPress archives, and whichever route you choose you will be designing the output section of the archive (the loop output section where you add the post content and custom fields etc.) in Views.

If you are using Layouts then you add the archive to the layout using an archive cell. If you haven't already created it in Views directly then you will create it within Layouts (which brings up the same Views archive editor inside a modal).

If you are not using Layouts then your archive will be displayed in the content area of the page, and the rest of the page design is determined by your theme (including sidebars where you can add widgets etc.).

If you are using Layouts, and your theme is integrated with Layouts, then you can design the whole page in Layouts, adding widget cells where you need them.

#480231

So, the way to go is:

With Layouts -> Approach 1
Without Layouts -> Approach 2

Thank you for clarifying that!

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