• Resolved WPChina

    (@wordpresschina)


    I have a table with 10 columns and about 120 rows. I want to display only 3 of the columns and 10 of the rows on a page so I use this shortcode:

    [table id=10 show_columns="A,B,C" show_rows="1,2,3,4,5,6,7,8,9,10" /]

    Also, the support documentation says the show_columns are numbered like 1,2,3,4 but on my tablepress I see letters A,B,C,etc. Is this a problem?

    However, the entire table (all 10 columns and 120 rows) are displaying. Is my syntax incorrect? it seems fine to me.

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    First, using letters instead of number is no problem here, they get converted automatically.

    Now, about the functionality: These parameters work on top of the visibility settings on the “Edit” screen. So, if all rows/columns are marked as visible there, nothing will change. You will first have to hide everything, and then re-show the desired cells. Please try this Shortcode:

    [table id=10 hide_columns=all show_columns="A,B,C" hide_rows=all show_rows="1-10" /]
    

    Also note how I use an abbreviated syntax to make the Shortcode shorter.

    Regards,
    Tobias

    Thread Starter WPChina

    (@wordpresschina)

    Ah that fixes it. Ok I understand the logic now~

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is syntax correct on shortcode to show_columns and show_rows?’ is closed to new replies.