• Resolved xprojectsx

    (@xprojectsx)


    I found Table Press and have been playing with it all day… I really like it but I am not sure this is possible:
    I have one large table currently with over 50 columns. I want to display variations of the table on the front end either in a page or widget, that only shows specific columns from that table. In some cases this could be 48 identical columns and in other cases it would just be using two columns. So creating multiple tables for this purpose would be a massive waste of time.

    Is it possible to output only certain columns from one table per instance?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The best way for this is to hide columns via a Shortcode parameter. For example, you could use

    [table id=123 hide_columns=all show_columns="1,5-8,11" /]
    

    to generate a table with only columns 1, 5, 6, 7, 8, and 11 visible.

    Regards,
    Tobias

    • This reply was modified 5 years, 6 months ago by Tobias B?thge.
    Thread Starter xprojectsx

    (@xprojectsx)

    Thank you! Is there a way to display these columns in a specific order so that say you put column 7 before column 3 like show_columns=”7,3″ in one case and “3,7” in another?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no, that’s not direcly possible with these Shortcode parameters. You’d then have to use a slightly different solution, based on a TablePress Extension: https://tablepress.org/extensions/table-column-order/

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘1 large table show only certain columns’ is closed to new replies.