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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    It seems that this is caused by a conflict with the “Easy Bootstrap Shortcodes Pro” that you are also using now. That plugin seems to be offering a [table] Shortcode as well, which results in a conflict.
    It seems that it’s possible to add a prefix to the Easy Bootstrap Shortcodes Pro version of the Shortcode (in the plugin’s settings). Alternatively, you could also change the TablePress version of the Shortcode to something else, e.g. tp_table, by using the TablePress Extension from https://tablepress.org/extensions/table-shortcode/

    Regards,
    Tobias

    Hey we are having the same issue. In the Easy Bootstrap Shortcodes Pro settings, we do have a prefix of ebs_ and it is still causing Tablepress to not render tables.

    https://www.dropbox.com/s/3cx4enh968b1p6b/Screenshot%202017-06-22%2010.16.50.png?dl=0

    What are the alternatives?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    What are you getting instead of the table? Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    And just to be sure that it is related to the [table] Shortcode: Does it work with the suggested Extension and a changed Shortcode above?

    Regards,
    Tobias

    This is an internal application that you wouldn’t have access to. I was hoping there was a work around to your extension. I am calling the short code from PHP directly and I didn’t want to have to change code. If that is the only option, I guess I will have to.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    if you are calling the Shortcode directly from PHP, you would not even need the Shortcode. You could just use the TablePress Template Tag function, see https://tablepress.org/faq/documentation-template-tag-functions/

    Maybe that’s a possibility? Unfortunately, I can’t really say more about the Shortcode here, without investigating this more, directly on the site.

    Regards,
    Tobias

    We are actually doing it like this in php.

    do_shortcode(‘[table class=”scroecardTable” id=topaxcarticles_us /]’);

    But we are also leveraging the straight up [table] tags within posts and pages, non php.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    so that PHP code can be replaced with

    <?php
    tablepress_print_table( array(
      'id' => 'topaxcarticles_us'
    ) );
    

    The class parameter is not used by TablePress.

    If the Shortcode is not working, there is something else on your site also registering that Shortcode. You will have to turn that off or use the TablePress Extension mentioned above.

    Regards,
    Tobias

    Ok, I get that,but we use the class to style the table, how do I still leverage a class on a table with PHP?

    Also, we use the actual shortcode in articles. [table], how can we resolve that?

    Thanks,

    Clint

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Clint,

    but TablePress doesn’t know such a class parameter, that’s why this would not make sense. If you want TablePress to add an extra CSS class to the table output, you would have to use
    [table id=123 extra_css_classes="scroecardTable" /]
    or in PHP

    <?php
    tablepress_print_table( array(
      'id' => 'topaxcarticles_us',
      'extra_css_classes' => 'scroecardTable',
    ) );

    For getting the [table] Shortcodes to work: You will either have to find out what is interpreting the [table] Shortcodes now (if it is not TablePress) and turn that off or use the TablePress Extension that I mentioned above and change the Shortcode.

    Regards,
    Tobias

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Missing tables’ is closed to new replies.