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 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 |
---|---|---|---|---|---|---|
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 6 years, 6 months ago.
Assisted by: Christian Cox.