Okay
  Public Ticket #857789
Portfolio ordering with Post Type Order doesn't work...
Closed

Comments

  •  2
    Erik started the conversation

    Hi,

    I am using the Kalium theme. In order to change the order of the Portfolio items on the different Portfolio pages, I have installed the plugin Post Type Order. But when i change the order in the wordpress back office, the order in front is still the same, and the changes i've done in the back office doesn't change nothing on the page. I have the latest Version of the post type order plugin and the latest version of your Theme. My site is www.aksel-creas.com/ac01/.

    Please help.

    Best regards

  • [deleted] replied

    Hi Erik,

    Please don't forget to go to Settings > Post Types Order > and activate Auto Sort option 

     

    (view large version)

    Also if you want those changes to take effect on portfolios that you have called with Visual Composer then you need to do this:

     

    (view large version)

  •  2
    Erik replied

    Hi Ylli,

    Thank you for your response !

    I already did what you suggest for the extension "Post Types Order" but it change nothing...

    My portfolios is not called with Visual Composer for information, i use the "Portfolio page" model in the attribute of the page for each portfolios.

    Could you check maybe the configuration in the back office to see what is wrong ?

    Best Regards,

    Erik

  • [deleted] replied

    Hi Erik,

    This is very strange, it works for everyone and it should work for you too.

    Can you please send us your WordPress username and password? We need to investigate your site and then get back to you if we have possible solution.

    Make sure to choose Private Reply when you send us sensitive informations!

  •   Erik replied privately
  • [deleted] replied

    Hi Erik,

    I've added the following code in functions.php

    // Fix Portfolio Order
    function fix_order_kalium_portfolio_pre_query( $args ) {
    if ( isset( $args['order'] ) ) {
    unset( $args['order'] );
    }

    if ( isset( $args['orderby'] ) ) {
    unset( $args['orderby'] );
    }
    return $args;
    }

    add_filter( 'kalium_portfolio_pre_query', 'fix_order_kalium_portfolio_pre_query' );
    It seems to change the order of items like they are set in Post Type Order plugin.

    Can you please check it and see if its working fine?