Problem:
Remove wpv_post_id URL parameter from Views filter form.
Solution:
The normal view does not work as expected in the archive page, in your case, you can remove the URL parameter "wpv_post_id" with Views filter hook "wpv_filter_requires_current_page":
For example, add below codes into your theme/functions.php
add_filter('wpv_filter_requires_current_page', 'remove_urlpara_func', 99, 2); function remove_urlpara_func($requires_current_page, $view_settings){ global $WP_Views; if($WP_Views->current_view == 123){ return false; } return $requires_current_page; }
Please replace 123 with the problem View's ID, and test again.
Relevant Documentation:
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Hong_Kong (GMT+08:00)
This topic contains 4 réponses, has 2 voix.
Last updated by dianaM-4 Il y a 8 années et 1 mois.
Assisted by: Luo Yang.