Plugin Contributor
pwtyler
(@pwtyler)
Hi there—
What code are you using in your template to add the table? As I mentioned in the other thread, the logged in/logged out issue with the “HTML output” seems to have been a problem with this plugin since its inception, and I recommend using ID output with either of the following code snippets—
$tablepress_id = get_field( 'your_field_here' );
echo do_shortcode( '[table id="'.$tablepress_id.'"]' );
or
$tablepress_id = get_field( 'your_field_here' );
$args = array(
'id' => $tablepress_id,
);
if ( function_exists( 'tablepress_print_table' ) ) {
tablepress_print_table( $args );
}
I’m only now getting to that update I promised four months ago to hide the HTML output option.
I’ve not used the rowdetails extension before, but I’m happy to try to help with it. I installed it in my test environment, and it seems to be working with ID output and the following tweak to the do_shortcode version:
echo do_shortcode( '[table id="'.$tablepress_id.'" datatables_row_details=true]' );
does that work for you?
Best,
Phil
Thread Starter
okso
(@okso)
Hi Phil, thanks for follow up on this. cool, I wondered if the shortcode could be used. I’ll check the mod now.
Thread Starter
okso
(@okso)
awesome, thanks for this, all good.