Forced ‘orderby’ breaks WP_Query
-
Hi there,
There’s an issue with your plugin forcing itself into every WP_Query, including custom ones where you specify an ‘orderby’ value.
The issue is with line 132 inside class.cpto.php. It needs to be:
if ((isset($_GET[‘orderby’]) && $_GET[‘orderby’] != ‘menu_order’) || (isset($query->query_vars[‘orderby’])))
This is to allow for custom WP_Query order values.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Forced ‘orderby’ breaks WP_Query’ is closed to new replies.