Skip Navigation

[Resolved] Individual Category Archives

This support ticket is created 7 years, 1 month 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Shane 7 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#573298
archive.PNG

Hi, I was wondering if there was a way to create category archives for individual categories

For example, I have a WooCommerce store with 3 different categories Product Cat A, Cat b, Cat C. From your documentation I can see how to create a custom archive that would style all these categories the same. Is there a way to create an Archive that I can apply to Cat A, another Archive that I can apply to Cat B etc

The use case for this is I would like to apply a different banner and top content to each category archive - see screenshot

Thanks!

#573336

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stewart.

Thank you for contacting our support forum.

Actually its not possible to create a separate archive for each category however you can use [wpv-conditional] shortcode to check the term being used on that archive and build a different template for each term.

Thanks,
Shane

#573617

Hi - I don't really understand what you mean - would you be able to point me in the direction of any documentation for how to do this?

Thanks

#573787

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stewart,

Sure I'll provide an example as well.

Take a look at this.

[wpv-conditional if="('[wpv-archive-title]' eq ' Archive A' )"]
custom design A

[/wpv-conditional]

[wpv-conditional if="('[wpv-archive-title]' eq ' Archive B' )"]
custom design B

[/wpv-conditional]

So from the code above When you are on Archive A only the design for Archive A will be shown and vice versa.

For more information on conditionals please check the link below.
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/

Please let me know if this clears things up for you.
Thanks,
Shane