if someone also likes clean id references, here we go. ??
you can add an image with the known shortcode sheme:
[image id="2167"]
then add to your theme controller (e.g. functions.php):
add_filter('tablepress_cell_content', 'tablepress_update_image_ids', 10, 4);
function tablepress_update_image_ids( $cell_content, $tableID, $row_idx, $col_idx ) {
return preg_replace_callback('/\[image id=\"(.*?)".*\]/', '__tablepress_set_image_attachment', $cell_content);
}
function __tablepress_set_image_attachment( $matches ) {
$attachmentID = (int) $matches[1];
$image = wp_get_attachment_image( $attachmentID, 'thumbnail');
if( empty( $image ) )
return FALSE;
return $image;
}