How to Echo Variable As Table ID
-
Hello @tobiasbg
I create variable to show my table as dynamic (pull from my ACF field).
In ACF field value is my table ID which is the number only.
Here is my code:
<?php
$tablid = get_field(‘dest_pricing’);
// this just test it work echo $tablid;
tablepress_print_table( array( ‘id’ => echo $tablid ) );
?>but I found error
Parse error: syntax error, unexpected ‘echo’ (T_ECHO)
Please help
Thank you so much
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to Echo Variable As Table ID’ is closed to new replies.