Skip Navigation

[Resolved] Using Categories

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

Our next available supporter will start replying to tickets in about 4.88 hours from now. 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 24 replies, has 3 voices.

Last updated by Shane 5 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#1262441

Hi,

I decided to use Categories on Types and within that I have created the 3 categories as per earlier ticket, what I need to know is how can I create a templet to display only one category of items.

I have 3 x categories and i want each category to be on it's own archive page

#1262449

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - Please check the following Doc and try to follow the instructions and try to resolve your issue:
=> https://toolset.com/documentation/customizing-sites-using-php/creating-taxonomy-term-archives/

#1262453

Hi, this seems extremely complicated, I would prefer to use templates. I am trying to create with WordPress Archives in Toolset

#1262457

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

#1262475

It makes no sense.
I have created a basic layout template in WordPress Archive, now I want to show this on a page, I see no shortcode at all.

I have 3 x categories, and ideally I want First Aid Training Courses category to show on the First Aid page, and etc etc, so my plan is to make an archive for First Aid Training Courses and then add this template to my page with shortcode, and then I can replicate each template for each page. So that I have 3 website pages, displaying archive courses for the 3 categories.

#1262491

See here, now on this page I would like to list only the First Aid Training Courses.
hidden link

Life Support training will go here
hidden link

Mandatory Training to go here
hidden link

#1264019

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

As I can see that - you have created three different pages where you want to list the specific category information.

See here, now on this page I would like to list only the First Aid Training Courses.
hidden link
=> Above page should display the "first-aid-training" term information.

Life Support training will go here
hidden link
=> Above page should display the "life-support-training" term information.

Mandatory Training to go here
hidden link
=> Above page should display the "online-mandatory-training" term information.

If above is true - you should create a taxonomy view and select your taxonomy and add a query filter using the "Query Filter" section and add the term filter and select to filter by shortcode attribute. "Terms with ID set by the shortcode attribute:"

And when you add the view:

[wpv-view name="your-view-slug" terms="999"]
[wpv-view name="your-view-slug" terms="999"]
[wpv-view name="your-view-slug" terms="999"]

Where:
- Replace 999 with the term ID.

More info:
=> https://toolset.com/documentation/user-guides/passing-arguments-to-views/#controlling-the-filter-with-shortcode-attributes

#1264111

Hi Minesh,

You lose me when you say I need to create a taxonomy View and then a Query Filter. Are you able to assist, please? I have created a WordPress Archive and I assume this is incorrect.

#1264139

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I'm passing this ticket to my colleague (Shane) who works exclusively in the same timezone you are active mainly. That helps not to wait too long as I need to close the day at this end.

#1264145

Thank you

#1264321

Shane
Supporter

Languages: English (English )

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

Hi Barry,

To back up a bit you want to create a different category style for each of your categories?

So if there are 3 categories then you want each of them to be displayed different on their respective archive page?

Please let me know.

Thanks,
Shane

#1264887

Hi,

Yes, there is one set of TYPES in admin, however, I will need them to show on different pages. I currently have 11 courses set up in admin that should be shared across 2 categories (5 in one, and 6 in the other), but there is a 3rd category that has no courses set up yet.

#1265363

Shane
Supporter

Languages: English (English )

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

Hi Barry,

This is possible but not practical, The reason is because you can only design an archive template generally for your taxonomy.

This would mean you will get all your taxonomies displaying using the same layout.

However what you can do is to use our views conditional to check which taxonomy is being displayed and then within that conditional you write your own custom layout code.

This will require a separate conditional for each of the terms.

Please let me know what you think of this.

Thanks,
Shane

#1265367

Hi Shane,

I am happy to take your lead on this, as long as it is possible to have those 3 categories on the 3 pages, are you able to help me set that up?

#1265901

Shane
Supporter

Languages: English (English )

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

Hi Barry,

You want 3 separate pages for your 3 categories?

Are they going to be added to the menu ?

Please let me know.
Thanks,
Shane