Table not showing
-
Hi there,
first of all: awesome idea, awesome approach – should make life a lot easier.
I’m working on a product page for alloy wheels in combination with Advanced Custom Fields and would like to use your plugin to display all the data of an alloy wheel e.g:
Dimensions: PCD’s RRP
17″ Inch 5 x 110/112/114 119,-€etc..
Backend implementation does work fine, unfortunately the front end code doesn’t find the table.
At the beginning of the page, I’m getting the custom post type via:
$custom_args = array( 'post_type' => 'oxxo_product_box', 'posts_per_page' => 1 ); $loop = new WP_Query( $custom_args ); while ( $loop->have_posts() ) : $loop->the_post(); $html = ''; $html .= '<div class="single-product">'; $html .= '<h1> '. get_the_title() . '</h1>'; etc...
I’ve tried all three different methods of showing the table like:
1)
$tablepress_id = get_field( 'data_table' ); echo do_shortcode( '[table id="'.$tablepress_id.'"]' );
2)
$tablepress_id = get_field( 'data_table' ); $args = array( 'id' => $tablepress_id, ); if ( function_exists( 'tablepress_print_table' ) ) { tablepress_print_table( $args ); }
3)
the_field( 'data_table' );
Any Ideas?
You can see the issue here:
First [table not found] is via Loop & PHP code
Second Table is handish entered “1” as the table ID.https://beta.oxxo-wheels.de/en/product/bestla/
Otherwise I’m scr***d since it will make my project a lot harder ??
Thanks for any hints and ideas how to solve this!
Toby
- The topic ‘Table not showing’ is closed to new replies.