• Resolved rsteinhoff

    (@rsteinhoff)


    Hi Tobias,

    Thank you for your help earlier with the column order extension.

    I have just started to use the extension and have a question. I have a table that has a lot going on with it:

    [table id=7 responsive=scroll responsive_breakpoint=phone hide_columns=”1,2,3,4,5,6,7,8,9,11,12,13,14,15,18,19,20,21,22,23,24,25,26,27,28,30,31,32,33,34″ row_order=sort row_order_sort_column=J /]

    This table works perfectly as columns 10, 16, 17, and 29 are shown and everything else is hidden.

    When I try to implement column ordering nothing happens. I’m trying to swap column 17 and column 29. Here is my code:

    [table id=7 responsive=scroll responsive_breakpoint=phone hide_columns=”1,2,3,4,5,6,7,8,9,11,12,13,14,15,18,19,20,21,22,23,24,25,26,27,28,30,31,32,33,34″ column_order=”manual” column_order_manual_order=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,29,18,19,20,21,22,23,24,25,26,27,28,17,30,31,32,33,34 row_order=sort row_order_sort_column=J /]

    Any feedback would be greatly appreciated.

    Thanks!

    Ronald

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Is the TablePress Column Order Extension installed and activated?

    You should then not need the hide_columns parameter, actually, and you can use ranges to simplify the Shortcode:

    [table id=7 responsive=scroll responsive_breakpoint=phone column_order="manual" column_order_manual_order="1-16,29,18-28,17,30-34" row_order=sort row_order_sort_column=J /]
    

    Regards,
    Tobias

    Thread Starter rsteinhoff

    (@rsteinhoff)

    Hi Tobias,

    Thanks for looking into this for me.

    Yes, the Table Column Order extension is installed and activated.

    If I remove the hide_columns parameter then the columns that I want hidden are shown. I’m trying to hide all columns except for 10, 16, 17, and 29 but then I want to order those columns as 10, 16, 29, 17.

    Thanks,

    Ronald

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    ah, well then you’ll just need

    [table id=7 responsive=scroll responsive_breakpoint=phone column_order="manual" column_order_manual_order="10,16,29,17" row_order=sort row_order_sort_column=J /]
    

    Regards,
    Tobias

    Thread Starter rsteinhoff

    (@rsteinhoff)

    Wow, so simple! So if you use column ordering you don’t need to hide the columns. Very interesting!

    Thanks Tobias!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    correct – basically that is because the “manual” order mode also selects which columns to show (and in which order).

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Column ordering question’ is closed to new replies.