Skip Navigation

[Resolved] Customise certain parts of category pages

This support ticket is created 3 years 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
- 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 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 2 replies, has 2 voices.

Last updated by phillipS-5 3 years ago.

Assisted by: Mateus Getulio.

Author
Posts
#2545715
Screenshot 2023-02-01 at 14.39.30.png

Tell us what you are trying to do?
I have a custom post type set up (Courses). The taxonomy includes Categories. So there are courses with category A, B, C, D etc. for argument's sake. I am able to create a WordPress Archive view with Toolset that displays all relevant courses when I go to website.com/courses/A, website.com/courses/B, and so on. However, what I would like to do is for each category page to have a unique header, i.e. an image and a short blurb to explain what the category is. How is this possible?

Is there any documentation that you are following?
https://toolset.com/course-lesson/creating-a-custom-archive-page/

Is there a similar example that we can see?
In the attached image, the top section is unique to each taxonomy term - it explains a bit about the category and provides a unique image. Below is simply a list of all posts of this taxonomy. E.g. all courses that have a category of 'High Voltage'

What is the link to your site?

#2545875

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Thanks for your contact and welcome to the Toolset support forum!

This application involves some file and code manipulation - since it can be done through different ways. A possible solution is to create a correspondent custom-taxonomy-{taxonomy}-{term}.php archive file, that would have the specific styles and elements for this term. Please check this codex tutorial about taxonomy templates:

https://developer.wordpress.org/themes/template-files-section/taxonomy-templates/, specially the section: https://developer.wordpress.org/themes/template-files-section/taxonomy-templates/#custom-taxonomy

We also have a related documentation that might be helpful in order to achieve the desired results, kindly check it: https://toolset.com/documentation/customizing-sites-using-php/creating-taxonomy-term-archives/

Unfortunately, we do not have a native feature to accomplish this task, and therefore, it is necessary to implement a custom solution. Please take a look on the documentation above and let me know if you still have doubts. Thank you!

Kind regards,
Mateus.

#2546451

Thanks Mateus. That was useful, but actually led me to a different solution which works well in my scenario and doesn't require too much custom work.

I have 10 categories so what I have done is create a view for each using Toolset. I then create an archive template with Elementor for each of the 10 categories and add the corresponding view into it. This is not a great solution if there are 100s of categories, but for a small handful it is fine to do it this semi-manual way! It allows me to have new posts added automatically to the category page, whilst still retaining the unique look of each page.

Thanks for your help.