you can easily notice that you have added the related query filter for the "wpv-collection" but it seems that you did not added related query filter to filter your view for the field "location".
Can you please make sure you have added the related query filter for your location field as well.
Ok I have added this when we reworked the page, please see attached.
This the page: lien caché
So this code is used in the filter bar:
[wpv-form-view name="feat-loc-destin-pages" wpv-collection="glamping" wpv-location="wales" target_id="self" target_id="36480"]
Now it wont work.
It worked fine before I added: wpv-location="wales"
This my intial question, am I able to add more shortcode attribute?
Can you please tell me what relation clause you want to apply between your shortcode filters. It should display the posts which has value assigned:
- glamping AND wales
- glamping OR wales
Can you please share problem URL where you added your view as well as 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.
As I can see on the following page: lien caché
- You want to display just form and when we select the specific filters values - it should be redirected on the Search Result page as you already setup. In this case, all the filter values will be available with the form as you setup a "Search Result" page, your view needs to set to use the submit button
So, in this case you should setup your "Query Filter" to filter by URL Pram rather than shortcode attribute.
I've adjusted the settings for your view accordingly:
=> lien caché
Now, you just need to set your view's Query Filter to use URL param.
Where we pass the collection and location, it does not return any result and if you keep the above shortcode on the following page:
=> lien caché
Then save the page after applying the above shortcode, one the frontend where search form displayed at top of the page:
=> lien caché
- You will not see any option to select as there is no posts matching available for collection and location values.
if you remove just wpv-collection shortcode attribute, it does work because there are posts where collection glamping is set but there are no posts when collection and location matches.
I'm not sure how exactly your setup before but it that setup you think is flexible for you and matches your requirement - I suggest you should go with that.
For this page: lien caché
I use: [wpv-form-view name="feat-loc-destin-pages" wpv-collection="glamping" target_id="self" target_id="36480"]
This works as it should on the page, but results not right.
And on this page: lien caché
I use: [wpv-form-view name="feat-loc-destin-pages" wpv-collection="dog-friendly" target_id="self" target_id="36480"]
This works as it should on the page, however results are not right.
Both use the same Results Page however this not right. On Results I'm using:
Filter: [wpv-form-view name="feat-loc-destin-pages" target_id="self"]
Grid: [wpv-view name="feat-loc-destin-pages" view_display="layout"]
Because - you added the search form without collection shorcode attribute on the results page.
Can you please share access details again because access details are automatically removed once you mark the ticket resolved.
*** 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.
- As you can see we added condition where we are checking what shortcode attribute value is passed to "wpv-collection" and based on the value,if matches, we are adding one hidden field. If you do have plans to add more pages, you need to add more condition like this and setup the hidden field.
And on the result page where you are displaying the form - I've changed the shortcode that displays the form as given under: