I am using Toolset to build a directory of all the elected officials in an organization. The organization is broken down into groups called 'locals'. Each official is a part of a local.
I am trying to build a search page that allows a visitor to choose a local from list of all the locals and see all the elected officials in that local.
I can add the search field to the view. I can see the list of locals in the editor when I choose the form element type.
But when I look at the the page itself, the locals list doesn't show up, no matter what sort of form element I choose.
Is there any documentation that you are following?
Hello. Thank you for contacting the Toolset support.
I checked the problem URL page you shared, when you say you want to filter the resutls based on the local, I see you added select dropdown box with "Local" label - do you mean you have many to many post relationship and you want to display selected locals to that "Local" select dropdown?
*** 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.
I checked the view you created and I assume I see "local" post type post and the title is added something like "Local 90728" which has a number and you want to search on that number.
If this is true - you set your view to query post type "Contacts" and you want to apply search on the "local" post type, that is not possible. Actually, you can build the custom search using the custom fields, taxonomy or post title search using the post type you set your view to query.
If you want to search like "Local 90728" - then you need to set your view to query post type "Local" and then display the related contacts based on the returned result.
I've created the following test page:
- hidden link
Where you can search with local number and view is set to query local post type and within the view's loop I've added another view that is build using the legacy view that is set to query to contact post type.
=> hidden link
And later on I've added the above view that displays the related contacts within the main block view's loop section using the "Fields and text" block.
=> hidden link
Okay. I see what you mean. That's disappointing. Or, rather, the client will be disappointed. However they have so many other ways to search. Having to go to a different page to search by local number is probably something they can get over. I hope.