Skip Navigation

[Resolved] Custom archive for different taxonomy terms

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

Problem: I would like to create different WordPress Archives that can be used for separate term archives within the same taxonomy.

Solution: This isn't exactly possible with Toolset, but you can get close with a View. Create a View of all the posts you want to show, filtered by taxonomy term. Place this View on a custom page, and link to this page instead of your term archive.

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

This support ticket is created 7 years, 6 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
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 2 replies, has 2 voices.

Last updated by jillT 7 years, 6 months ago.

Assisted by: Christian Cox.

Author
Posts
#524812

I am trying to: Do a custom archive for the default post type for specific category only, & display category title at top. I suspect I have gone totally wrong!

I created a wordpress archive and checked all the Standard Archives.
I checked Categories under Taxonomy Archives.
I then set a Taxonomy Categories filer any of the following: Blog

I get a warning in the filter area saying, "This filter will not be applied to Taxonomy Archives matching the filtered taxonomies: category"

I have the following in my output editor:

[wpv-layout-start]
<h1>[wpv-post-taxonomy type="category" format="name"]</h1>
[wpv-items-found]
	<!-- wpv-loop-start -->
	<wpv-loop>
       <div class="home-column">
       <div class="home-thumb"><a href="[wpv-post-url]">[wpv-post-featured-image]</a></div>
		[wpv-post-link]<br>
      [wpv-post-date]
     </div>
	</wpv-loop>
	<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
		<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
	[/wpv-no-items-found]
[wpv-layout-end]

The result is that the category title does not show and the layout is applied to ALL categories.

#524824

Hi, it's not possible to apply different WordPress Archives to different terms in a single taxonomy, unfortunately. For example, if you have categories "Blog" and "Events", then both of these term archives must share the same WordPress Archive. However, if you have taxonomies "Categories" and "Locations" then you could use separate WordPress Archives for each taxonomy.

I get a warning in the filter area saying, "This filter will not be applied to Taxonomy Archives matching the filtered taxonomies: category"
That's right - you can't filter a taxonomy archive by the same taxonomy. WordPress Archives are not designed to work for a single term within a taxonomy.

One way to get around this is to create a View that acts like an archive for your category term. Create a View that shows all posts, then add a filter by taxonomy term. Add this View to a page and link to this page instead of your archive.

#524893

Thank you - that worked perfectly!