• Resolved satheeshrajv

    (@satheeshrajv)


    Hi,

    With ajax call I’m accessing the table press data.

    When I use the code
    echo do_shortcode(“[table id=2 /]”);
    It showing entire table. But when I want to display a specific column I used the code
    echo do_shortcode(“[table-cell id=1 row=1 column=2 /]”);
    But this is not working and I’m getting the response as [table-cell id=1 row=1 column=2 /]

    Please provide me some solution to display a single column value using ajax.

    Note: I have already installed the Single Cell Content Shortcode Extension 1.1

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.

    This should work (and is a bit faster):

    echo tablepress_table_cell_shortcode( array( 'id' => '1', 'row' => '1', 'column' => '2', ) );
    

    Of course you need to make sure that the TablePress Single Cell Content Shortcode Extension is activated as a plugin!

    Regards,
    Tobias

    Thread Starter satheeshrajv

    (@satheeshrajv)

    It worked. Thanks a lot. you are really great.

    Regards,
    Satheeshraj V

    Thread Starter satheeshrajv

    (@satheeshrajv)

    One more doubt.

    What I need to do If I want to pass dynamic value as row number like below

    echo tablepress_table_cell_shortcode( array( ‘id’ => ‘1’, ‘row’ => ‘$tab_val’, ‘column’ => ‘2’, ) );

    Thread Starter satheeshrajv

    (@satheeshrajv)

    I got it. Need to write like this.

    echo tablepress_table_cell_shortcode( array( ‘id’ => ‘1’, ‘row’ => $row_val, ‘column’ => ‘2’, ) );

    Thanks a lot for your quick and great suggestion.

    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 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Issue with Table-cell’ is closed to new replies.