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?
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
I am using same view in product category as home page.
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