Support » Plugin: TablePress » How to get last_modified in description?

  • Resolved ahlemann


    Hi Tobias,

    great job. Using your plugin for our Baseball-Club Holm Westend 69ers (
    I would like to have the last modification date in the table’s description.

    Using your [table-info]-shortcode oviously won’t work, last_modified and description are both meta fields.

    Is there a way?

    Thanks for the help.


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


    Hi Oliver,

    thanks for your question, and sorry for the trouble.

    To make that work, we’ll just have to tell TablePress that it should also evaluate Shortcode in the description. For that, just add this to your theme’s “functions.php”:

    add_filter( 'tablepress_table_render_data', 'tp_evaluate_shortcodes_in_description', 10, 3 );
    function tp_evaluate_shortcodes_in_description( $table, $orig_table, $render_options ) {
      $table['description'] = do_shortcode( $table['description'] );
      return $table;


    You are the man!

    Works just fine.



    Plugin Author TobiasBg



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

    Best wishes,

    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 ‘How to get last_modified in description?’ is closed to new replies.