I am trying to conditionally display Views Search Filters based on the Archive Title.
In setting up the view I have a Conditional block shown in the image below.
but the condition test will return false even if I'm on the archive page.
in a separate container I had set up to display the title of the archive just to verify the logic.
Is there any documentation that you are following?
Is there a similar example that we can see?
the section is currently set to be available to specific users. please request for credentials in your reply.
I suggest you add the shortcode to the custom archive so that you can see what it actually outputs, which is what you need to compare it against in your condition.
[wpv-archive-title]
On my own test site, for example, I have a CPT "Things", and on the archive for Things the actual output of the wpv-archive-title shortcode is "Archives: Things", so that's what I would need to test for with my condition rather than simply testing for "Things".
The topic ‘[Closed] Conditionally display a views search filter based on Archive Title’ is closed to new replies.