Skip Navigation

[Resolved] Category filter in Category archive.

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

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 4 replies, has 2 voices.

Last updated by Himanshu Agarwal 5 years ago.

Assisted by: Waqar.

Author
Posts
#1205312

HI,

I created a view for product category archive.
Please check below link:-
hidden link

This is a product category archive, and you can see there are different filters. There is a product category filter (Named "Niche"), here all categories are not showing only selected category showing.

But in home page all product categories are showing.

In this possible to show all product category for filter in product category filter in category archive?

#1205554

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Himanshu,

Thanks for asking! I'd be happy to help.

The way WordPress category archive pages works, they only show posts which belong to a particular term, whose archive page is being viewed.

Your page at hidden link is also a category archive page for the term "Education", which is why only one option "Education" is showing in the category filter.

You'll also see a warning message in the WordPress archive view "Product categories" ( screenshot: hidden link ), that this category filtering won't work here since this view naturally shows the current term's posts:
hidden link

In case, you'd like to change the default behavior of how WordPress archives work, you can remove all filters and content from your "Product categories" view and in the start of the Loop Editor section, insert a post view similar to the one used on the homepage.

regards,
Waqar

#1205975

I am using same view in product category as home page.

#1206241

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Himanshu,

Your product category archive page ( e.g. hidden link ) is set to use "Product categories" WordPress archive view:
hidden link

The homepage is using the "Home Search View (fields)" posts view:
hidden link

You can learn more about the difference in a post and a WordPress archive view, from these guides:
https://toolset.com/documentation/getting-started-with-toolset/create-and-display-custom-lists-of-content/
https://toolset.com/documentation/getting-started-with-toolset/customize-post-archives/

If you want to nest a post view in a WordPress archive view, you can remove the "Query Filters" ( screenshot: hidden link ) and content from the "Loop editor" section ( screenshot: hidden link ).

And in the "Output Editor" section, replace "[wpv-filter-meta-html]" shortcode ( screenshot: hidden link ) with your desired post view's shortcode.

regards,
Waqar

#1221331

Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.