orderby issue: possible general solution
-
Hey hijiri,
I had this issue with the orderby like others had, with the latest version where it’s supposed to work.
Then I looked into your code.
Was there any specific reason using the global
$argsto figure out if there was an orderby set on the outside? Why weren’t the$wp_query->get('orderby')an the$wp_query->get('order')good for that? If these ordering settings are not coming from the main query on a page or anything special is used to set the order of the main query the global$argsdoesn’t match what is set in the query — resulting your plugin overwriting the original setting.So if you think your plugin could work by reading the Query object people here probably wouldn’t need to do hacks to disable your – otherwise really good – plugin.
The topic ‘orderby issue: possible general solution’ is closed to new replies.