Prevent URL Parameter Affecting other WP Query
-
I have a loop the generates a list of custom post types as a menu:
$loop = new WP_Query( array( 'post_type' => 'farm-shop', 'orderby' => 'menu_order', ) );
The menu sometimes appears next to a woocommerce listing. When the user changes the order of the sorting for the woocommerce list, the url parameters affect my menu above.
For example if the user selects order by date (shop/?orderby=date&paged=1), the farm shop menu above loses it’s ‘menu_order’ orderly arrangement.
Is there a way I can tell my menu to ignore the url parameters?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Prevent URL Parameter Affecting other WP Query’ is closed to new replies.