I am struggling to set up the filtering in a page with the Portfolio gride.
My problem is I have Portfolio items in 4 categories, but in 2 countries. I tagged the country in each portfolio item to identify the country, and the category to identify the type. I set up 2 pages, one for Portugal, another to Norway, each with the items related in that country. And I activated the filter to allow restirct the display by category. The problem is, at first when the page is opened only the items of that country are shown, but when we click on a category in the filter, it gets all portfolio items of both countries. This is not good. It should show only the items of the selected category, but only among those initially displayed (of the specified country).
Maybe I was not clear explaining. This is not about language. It's a single language site.
The site is about an architecture office with buildings in Portugal and Norway. In the Portfolio I setup 4 categories: Education, Houses, Religious and Social. The portfolio has items related with theses categories located in both countries.
What I want is on the site to be able to show the Portfolio by country, and then filter by category. To do so, for each porfolio item, i use category to identify the type of construction, and a tag to identify the country where that construction is.
So I have a page for Portugal, and I use the gride to list all items with tag "portugal", with all categories. And another page for Norway, with tag "norway" and all categories.
At this stage everything is correct.
The problem is I need to allow filtering items in the page by category, and when I click for example, Houses, instead of seeing all constructions of category Houses of the selected country, the page lists all items from Portfolio ignoring the tag.
Unless you are willing to create different tags / categories for each country ( you can still use the same name but a different category slug will be needed ), then you will need to edit our theme function to change the way the filtering works.
If you have different page for each country and don't have a page where all the portfolio are gathered, then create different tags / categories.
You can also change the filter to "Isotope" and not using the "ajax" filter, if you use the Isotope filter, it will only filter within the post present on the page.
I am sorry but our support doesn't cover modification and customization, if you need it you can contact
"You can also change the filter to "Isotope" and not using the "ajax" filter, if you use the Isotope filter, it will only filter within the post present on the page."
That worked! It does now perform as I expected. I did have selected "Ajax" as I thought it would be the right option, but "Isotop" does what I needed.
Hi
I am struggling to set up the filtering in a page with the Portfolio gride.
My problem is I have Portfolio items in 4 categories, but in 2 countries.
I tagged the country in each portfolio item to identify the country, and the category to identify the type.
I set up 2 pages, one for Portugal, another to Norway, each with the items related in that country. And I activated the filter to allow restirct the display by category.
The problem is, at first when the page is opened only the items of that country are shown, but when we click on a category in the filter, it gets all portfolio items of both countries. This is not good. It should show only the items of the selected category, but only among those initially displayed (of the specified country).
How can I achieve this?
Nelson / Contacto Visual
Hello Nelson,
I am sorry but what plugin are you using to make different language?
For the category, why you don't create different category for each language.
Or just add a "dummy" category to use for the filter.
Do not hesitate to contact us if you have more questions.
Have a nice day!
Best Regards.
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme
Thank you for answering
Maybe I was not clear explaining. This is not about language. It's a single language site.
The site is about an architecture office with buildings in Portugal and Norway.
In the Portfolio I setup 4 categories: Education, Houses, Religious and Social.
The portfolio has items related with theses categories located in both countries.
What I want is on the site to be able to show the Portfolio by country, and then filter by category.
To do so, for each porfolio item, i use category to identify the type of construction, and a tag to identify the country where that construction is.
So I have a page for Portugal, and I use the gride to list all items with tag "portugal", with all categories. And another page for Norway, with tag "norway" and all categories.
At this stage everything is correct.
The problem is I need to allow filtering items in the page by category, and when I click for example, Houses, instead of seeing all constructions of category Houses of the selected country, the page lists all items from Portfolio ignoring the tag.
Please see attached screen captures.
Nelson / Contacto Visual
Hello Nelson,
Unless you are willing to create different tags / categories for each country ( you can still use the same name but a different category slug will be needed ), then you will need to edit our theme function to change the way the filtering works.
If you have different page for each country and don't have a page where all the portfolio are gathered, then create different tags / categories.
You can also change the filter to "Isotope" and not using the "ajax" filter, if you use the Isotope filter, it will only filter within the post present on the page.
I am sorry but our support doesn't cover modification and customization, if you need it you can contact
https://wpbuilders.co/request-service
Do not hesitate to contact us if you have more questions.
Have a nice day!
Best Regards.
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme
"You can also change the filter to "Isotope" and not using the "ajax" filter, if you use the Isotope filter, it will only filter within the post present on the page."
That worked! It does now perform as I expected. I did have selected "Ajax" as I thought it would be the right option, but "Isotop" does what I needed.
Thank you
Nelson / Contacto Visual
Glad to hear that!
Do not hesitate to contact us if you have more questions.
Have a nice week-end!
Best Regards.
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme