Hello.
I have a nested view with taxonomies ans posts.
The view of posts show a related post.
I'd like to filter posts by related posts, but I can't because filter with related posts is only avalaible in view of posts, not in view of taxonomies like as (see the attached image)
Filter all wines (nombolles, blancs, negres with D.O Ribera del Duero.
I tried with an archive with nested views and there i coud insert a dropdown to filter by related posts, but that dropdown non't filter anything when I clicked it.
Is there any way to get this?
I attach ans screenshot.
Hi,
Thank you for contacting us and I'd be happy to assist.
What you're planning to achieve will require some workaround. Can you please share temporary admin login details, along with the page where these nested views can be seen?
I'll be in a better position to guide you with the next steps, accordingly.
Note: Your next reply will be private and it is recommended to make a complete backup copy, before sharing the access details.
regards,
Waqar
Hi,
I'm re-opening this ticket and your next reply will be private.
Please share temporary admin login details, along with the page where these nested views can be seen.
regards,
Waqar
Thank you for sharing the admin access.
Here are the steps that you can follow:
1. In the child post view "Vista de vins no exclusius", you'll add the search field for the related posts (and any other search fields, if needed), as you would in a standalone view.
Important note: For this setup to work, it is important that the view's search is set to update the results with a page refresh on submit button's click and not using the AJAX.
2. At this point, the nested views will be showing both the search form and the search results.
You can update this shortcode used in the parent taxonomy view, from:
[wpv-view name="vista-de-vins-no-exclusius"]
To:
[wpv-view name="vista-de-vins-no-exclusius" view_display="layout"]
This new shortcode will only show the search results and not the search form.
3. To show a common search form from the post view on top of the taxonomy view, you can place this shortcode above the shortcode for the taxonomy view:
[wpv-form-view name="vista-de-vins-no-exclusius" target_id="self"]
When the search form will be used and the page will refresh, the search filter would be applied to all the instances of the nested post views.
I hope this helps and please let me know how it goes.
Ticket reopened, please update here if you still need assistance for it.