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
$args
to 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$args
doesn’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.
https://www.ads-software.com/plugins/intuitive-custom-post-order/
- The topic ‘orderby issue: possible general solution’ is closed to new replies.