Hello! I am working on our employee directory. Employee is a post type, Employee Type is a taxonomy, and there are 3 categories in that taxonomy: faculty, staff, and emeritus. I've been using a directory view for a while: hidden link
However, I'd like the default view of this view/page to show ONLY faculty and staff, BUT still have "emeritus" as an option in the search bar. I added
wpv-employee-type="faculty,staff"
to the shortcode, but Emeritus employees are still showing.
I wondered if it had something to do with the Query Filter I have set in the back, but now when I try to remove it, it returns when I refresh the page after deleting and saving, so it must be important:
Select posts with taxonomy:
Employee Types slug in one of those set by the URL parameter wpv-employee-type
AND
Filter based on the frontend search filter by Academic Program Areas.
SECONDARILY, I'm wondering if there's a way to make a URL display for this view/page for a field not used in the display or search of this view (in this case, Department, which is a category taxonomy of Employee).
No, I want to remove anyone tagged as Emeriti from showing in the default view, but keep them as options in the search box. So the default view acts as if a search was done where only Faculty and Staff were selected.
We will have to use view's filter hook "wpv_filter_query".
Can you please share admin access details and let me check what would be the possible solution in your case.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Unfortunately admin access to our website is only available on our network, by our IT department policy, so I can't share access. Any info you can provide to guide me to the right page, settings, snippets, etc. would be greatly appreciated.
I would like to know - later on when user select the option "Emeritus" from the "Employee Types" filter - do you want to show posts belongs to "Emeritus"?
Hi Minesh, I added the snippet, tested it without error, and activated it and ran it again. Unfortunately the Emeriti categorized folks are still showing in the view on hidden link