Skip Navigation

[Resolved] Archive pages in Toolset

This thread is resolved. Here is a description of the problem and solution.

Problem: I want to design an Archive layout which will apply to all pages. So on the main Member Profiles archive page, a user can click on one of the taxonomy terms and see the same archive layout for all members who have that taxonomy term selected. And finally, once it is designed, I want to use a shortcode to place the archive view in my pages.

Solution:
- WordPress automatically generates archives for custom post types and for custom taxonomy terms. You can customize the archive pages using Toolset's WordPress Archives feature.
- A Toolset WordPress Archive can be applied to a custom post type archive, and also to a taxonomy archive. So yes, you can create one WordPress Archive and use it for both.
- You can insert taxonomy term links in each post in the archive using the wpv-post-taxonomy shortcode. In the Loop Editor section, you will have the ability to insert the shortcode in the wpv-loop tags. When a User clicks one of these terms they will be redirected to the corresponding term archive.
- WordPress Archives cannot be inserted with a shortcode, because they are designed to be displayed only on archive pages. Since these are generated automatically by WordPress, no shortcode is provided. If you want to create similar lists of posts and display them on other parts of your site besides the archive pages, you can create filtered Views that return the same results. You can copy the code from the Loop of your WordPress Archive and apply it to the Loop of your filtered View.

Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-taxonomy.
https://toolset.com/documentation/user-guides/normal-vs-archive-views/
https://toolset.com/documentation/user-guides/digging-into-view-outputs/

This support ticket is created 5 years, 9 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.

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

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 5 years, 9 months ago.

Assisted by: Christian Cox.

Author
Posts
#951529

Hi there,

I want to use Toolset to design archive pages.

I have a custom post type called "Member Profiles". This has a custom taxonomy attached to it, called "Skills". BOth the custom post type and the taxonomy were built with Types.

The taxonomy has multiple terms, such as "editor", "writer", "proofreader".

I want to design an Archive layout which will apply to all pages. So on the main Member Profiles archive page, a user can click on one of the taxonomy terms and see the same archive layout for all members who have that taxonomy term selected.

Is there a way to do this in Toolset please?

And finally, once it is designed, could I use a shortcode to place the archive view in my pages?

Many thanks for your time, and very best wishes,
Andrew.

#951626

Hi, most of what you're asking is possible with one qualification. Let me explain a few things and hopefully it will become more clear.
- WordPress automatically generates archives for custom post types and for custom taxonomy terms. You can customize the archive pages using Toolset's WordPress Archives feature.
- A Toolset WordPress Archive can be applied to a custom post type archive, and also to a taxonomy archive. So yes, you can create one WordPress Archive and use it for both.
- You can insert taxonomy term links in each post in the archive using the wpv-post-taxonomy shortcode. In the Loop Editor section, you will have the ability to insert the shortcode in the wpv-loop tags. The wpv-post-taxonomy shortcode is documented here: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-taxonomy. When a User clicks one of these terms they will be redirected to the corresponding term archive.
- WordPress Archives cannot be inserted with a shortcode, because they are designed to be displayed only on archive pages. Since these are generated automatically by WordPress, no shortcode is provided. If you want to create similar lists of posts and display them on other parts of your site besides the archive pages, you can create filtered Views that return the same results. You can copy the code from the Loop of your WordPress Archive and apply it to the Loop of your filtered View.

https://toolset.com/documentation/user-guides/normal-vs-archive-views/
https://toolset.com/documentation/user-guides/digging-into-view-outputs/

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