I have created a View which displays and allows users to filter results on my website. The filters in the view work well. However, they do not work in a parallel WP archive. The two should be pretty much identical, allowing users to seamlessly go to the Search page (View) and then click on any category, keyword, etc., and still filter results in the same way.
It applies to four filters:
- Year
- Medium
- Difficulty
- Recommended Use
The Topics, Languages and Traditions filters seem to work just fine.
hidden link - you can see the View here, click on any taxonomy to see the archive.
Can you please help me work out what's up with those filters in the Archive? Thanks!
Thanks for looking into this. Sounds like you're just accessing the archives without using the filters. Click on 'FIlters' next to the Search button to expand the filters. That's where you'll see what I described. Also, Minesh was helping me with this before, perhaps he'd know.
Can you please tell me for what taxonomy archives you want to apply the filter. Can you please tell me what taxonomy archive you are using? Do you only want to apply on taxonomy archive or post type archive?
The thing is that if you are on the "Topics" taxonomy archive page for term xxx then you can not filter the results with term yyy as you are on the taxonomy archive page of xxx.
Having said that, you can not filter taxonomy archive which belongs to same taxonomy. It's basically not supported.
For instance - here is the taxonomy archive link:
=> hidden link
If you notice the Topics filter it will only offer the option "applied-ethics" as you can not add other term result on the "applied-ethics" term. Thats against WordPress standard. So it applies to other taxonomy term archive as well.
Thanks for looking into it. I don't think I'd ever want to filter by the same taxonomy as the one that's displayed in the archive. This shouldn't be a problem.
The odd thing is - the (other) taxonomy filters are working just fine. It's the custom field filters that aren't. I'm also pretty sure that they did work before, I worry something changed after you added the custom code that ensures that the difficulty and recommended use work as 'contains' not 'equals'.
Please go to this taxonomy archive URL:
=> hidden link
And click on the "Filters" button and notice the "Topics" multiselect filter. As you are on the "applied-ethics" taxonomy archive - it will only offer the option "applied-ethics" as you can not add other terms posts while displaying "applied-ethics" taxonomy term archive. I hope that clarifies. Having said that - you can not filter with other "Topics" taxonomy terms.
This is applicable to all taxonomy archives and to all taxonomy filters you have.
The odd thing is - the (other) taxonomy filters are working just fine. It's the custom field filters that aren't. I'm also pretty sure that they did work before, I worry something changed after you added the custom code that ensures that the difficulty and recommended use work as 'contains' not 'equals'.
===>
There is nothing changed and the code I added is applied to views and the custom code added for views will not be applicable to taxonomy archive.
Also I noticed that something changed now
=> hidden link
I do not see any records with above taxonomy archive which I do used to see. What changes you made? have you added any code or configurataion changes?
Thanks for clarifying. If I understand right, what you mean is that when I'm displaying an archive for taxonomy Topic (applied ethics in your example), I won't be able to further filter the results by Topic. The same applies to every taxonomy. Correct? If so, this is not a problem as long as I can still filter by other taxonomies and custom fields.
I have not made any changes to your code or any configuration. The point about something changing after you added the code was a guess - I don't really know what happened.
So, how do we make those custom field filters work the same way they do in the FilterSearch View?
That other ticket was a different ticket, as you always say. This one is about the custom field filters not working on the archives. I think I explained it above in as much detail as I can.
Did you do something with the site? Because now it comes up with a message and doesn't let me log in:
Connection Information
To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.
OK, it's sorted. Some space issues on the server, apparently the logs were switched on and clogged the space. The site should be working now and allow you to log in.