Hello. Thank you for contacting the Toolset support.
First of all, I would like to know why you added the view's query filter.
You do not want to display post in relation? Just like State -> City, so when you select any state it should display associated Cities with another dropdown?
Can you please share more details about your issue and share what is your expected output and share the problem URL and access details.
*** 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.
First thing, you can add only one post-relationship filter to your view's "Search and Pagination" section filter box either for the post-relationship hierarchy 1 or 2.
Currently, views do not offer to add two post-relationship frontend filters. So, the possibility for now is either you can add:
- First filter: I want to be able to filter view records by "Position Category".
or
Second filter: I want to be able to filter view records by "Vessel". This also has to be available as URL param
I want to select a button from another page and the url navigate to the page with the view filtered by the URL parameter only
==>
Ok but which page and you want to filter with what post-relationship?
Do you mean that you will keep the following filter:
1) Seaman Position Categories > Seaman Positions > Seamen
And the another post relationship filter should be coming from URL param to filter the post relationship with Vessels? If yes, can you please tell me to which page you will add filter for vassel and pass the vassel ID as URL param?
From the page "browse vessels" after the click of the button circled red in the image. I would be navigated to the above view (Browse Seamen page - Search Seamen view) which would be filtered by "Vessel" in the URL parameter (e.g wpv-vessel-filter).
"And the another post relationship filter should be coming from URL param to filter the post relationship with Vessels? If yes, can you please tell me to which page you will add filter for vassel and pass the vassel ID as URL param?"
So we would like the view to be on the same page of the browse seamen.
It is not a valid admin account, since it is a custom codes problem, please provide a valid admin account, also provide below details:
- Where I can edit your PHP codes
- I assume we are talking about this case:
1) Goto URL: hidden link
click button "Find Seamen Worked on Vessel"
2) it redirect me to URL: hidden link
You are going to display "seamen" posts related with URL parameter "wpv-vessel-filter".
Can you confirm it? thanks
You are passing URL parameter "wpv-vessel-filter" to the result page, for example: hidden link
The URL parameter "wpv-vessel-filter" should be a vessel post ID, but one "vessel" post can connect to multiple "Seaman Sea Services" posts, and one "Seaman Sea Services" post can connect to one "seamen" post, as a result:
one "vessel“ post post is related with multiple "seamen" posts.