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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The Shortcode from that plugin will not help with showing when a table was updated. For that, you can however simply use the built-in [table-info] Shortcode, see https://tablepress.org/faq/documentation-shortcode-table-info/

    Now, to make that Shortcode work in the table description, it should be sufficient to add this to the “functions.php” of your theme:

    add_filter( tablepress_table_output'', 'do_shortcode' );

    Regards,
    Tobias

    Thread Starter Dan Greene

    (@dgreene423)

    My functions.php didn’t like that add_filter. I just moved the table description so I could use the shortcode. The overall page stayed the same anyway so no big deal. Thanks, as always, for the quick response.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ah, my bad, there’s a type in my code. It should have been

    add_filter( 'tablepress_table_output', 'do_shortcode' );

    Regards,
    Tobias

    Thread Starter Dan Greene

    (@dgreene423)

    Ah ok I didn’t catch that misplaced quote either. It works fine now.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    great! Thanks for the confirmation! ??

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Shortcodes in table description’ is closed to new replies.