• Resolved wdanielryan

    (@wdanielryan)


    Line 83 throws an error if get_query_var('orderby') returns an array instead of string. The following fixes it:

    if ( ( is_array( get_query_var('orderby') ) && in_array( 'menu_order', array_keys( get_query_var('orderby') ) ) ) || is_string( get_query_var('orderby') ) && 0 === strpos( get_query_var('orderby'), 'menu_order' ) ) {

    https://ww.wp.xz.cn/plugins/simple-page-ordering/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Jake Goldman

    (@jakemgold)

    Fixed in 2.2.3. The change to the ORDER BY parameter in WP Query came late in the release cycle of 4.0!

Viewing 1 replies (of 1 total)

The topic ‘error when 'orderby' is an array and not a string’ is closed to new replies.