• Resolved BMCUser

    (@bmcuser)


    Thank you, Tobias, for a great plugin. I just wanted a simple plugin that imports a CSV file to WordPress table and found wp-table-reloaded. Didn’t realize the extensive features you’ve put into it until I read your documentation and saw all the options you can use with shortcode.

    What I like to do is display the contents of one cell, i.e. at row=6, column=4 (four columns total). I used the following code:
    wp_table_reloaded_print_table(“id=3&first_row_th=false&hide_columns=1,2,3&row_count=1&row_offset=6);
    This displays a table with one item. I didn’t want the borders, so I added “border=0&cellspacing=0” to the above call, but that didn’t do anything. I can’t specify Custom CSS because it removes the border when I want to display the table with borders. Any suggestions? I’m using IE9.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    from what I understand you just want the content of a single cell, without it being a table?
    You are lucky, as this has been needed in the past, and thus there is some code for it already.
    Please take a look at http://wordpress.org/support/topic/plugin-wp-table-reloaded-display-content-of-a-cell where you will find instructions for code that will create a new Shortcode that allows you to obtain a single cell’s content. Make sure to follow all posts in the link, as there were some modifications.

    Regards,
    Tobias

    Thread Starter BMCUser

    (@bmcuser)

    Thank you for your quick reply and I apologize for not finding your earlier post. The code you provided works using shortcode.

    However, I’m making the call within a template. Is there a corresponding function I can call?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem about not finding the older post! The search on this site is a little bit limited, and as I knew what to look for, it was easier for me 🙂

    Yes, you can use this within a template, too. It just needs a small trick: Simply wrap the Shortcode in a do_shortcode() call:

    echo do_shortcode( '[table_cell id=123 ... /]' );

    Best wishes,
    Tobias

    Thread Starter BMCUser

    (@bmcuser)

    Wow, that did it! THANK YOU!!!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    great, thanks for the confirmation! 🙂

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display one cell content without borders’ is closed to new replies.