• Resolved zactoff

    (@zactoff)


    My site uses several wp_query calls to list posts in various orders depending on the page.

    This plugin was over-riding all ‘orderby’ settings and would only list posts in the menu order.

    It was also stopping me from being able to list my posts by date in the back-end which was extremely frustrating.

    If you’re using this plugin purely for a visual reference in the back-end then use another plugin.

    https://www.ads-software.com/plugins/intuitive-custom-post-order/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author hijiri

    (@hijiri)

    Hi, zactoff

    I will support the sorting in admin UI. in next update ver.3.0.0.

    Thanks.

    Plugin Author hijiri

    (@hijiri)

    Hi, zactoff

    Today, ver.3.0.2 released.
    Please try this.

    Thanks.

    I have the latest version (3.0.3) and I’m still experiencing this plugin overriding ALL ‘orderby’ settings for a custom wp_query on a custom page within the admin.

    If I deactivate the plugin my posts display in the order I have determined in my code. If I activate the plugin again they ignore my orderby settings .

    Hello,

    I have worked around this issue by adding the following code to the mu-plugins folder to disable this plugin on my custom admin page (rentallist):

    add_filter( 'option_active_plugins', 'disable_intuitive_order_plugin' );
    
    function disable_intuitive_order_plugin($plugins){
    
        if($_GET['page'] == 'rentallist') {
    
            $key = array_search( 'intuitive-custom-post-order/intuitive-custom-post-order.php' , $plugins );
    
            if ( false !== $key ) {
                unset( $plugins[$key] );
            }
        }
    
        return $plugins;
    }

    This is based on the following article: https://lowgravity.pl/blog/quick-tip-how-to-disable-wp-plugin-on-certain-page/

    Whilst this works it should not be necessary. The plugin should be fixed to prevent it overriding orderby parameters specified in custom queries for use in the admin area.

    Thread Starter zactoff

    (@zactoff)

    Hijiri,

    Just wanted to say thanks for fixing sort order, love this plugin :c)

    Zac

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin overrides wp_query orderby settings and sorting of posts in admin view’ is closed to new replies.