internetimage
Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] shortcode in functions.phpHi,
I resolve the problem with the function
tablepress_print_table(array('id' => $flip[$post_obj->ID]));Thanks!
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] shortcode in functions.phpI simplify the code for you:
add_action('init', 'process_post', 21); function process_post() { if (isset($_GET['output']) && $_GET['output'] == 'pdf') { if (shortcode_exists('table')) { echo "EXIST"; } else { echo "NOT EXIST"; } echo do_shortcode('[table id=1 /]'); exit(); } }The result is : NOT EXIST [table id=1 /]
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] shortcode in functions.phpI think, the problem is that I process $_POST in the init hook and I use the shortcode. The hook init is too early. What is the good hook for the shortcode?
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] shortcode in functions.phpI did not understand.
I use the shortcode in template but i render all in the pdf insted in html page.
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] shortcode in functions.phpHi,
I print shortcode in a frontend.
RegardsForum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] shortcode in functions.phpThanks for reply.
I try to print the table in a pdf.
When I click “print” I process some parameter in the post variable and print the page with the mpdf library.Regards
Viewing 6 replies - 1 through 6 (of 6 total)