Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter EaGames

    (@eagames)

    Temporary im using this code, it works bad i thing this is not the best solution:

    $table_id = preg_replace( "/\D/", '' , get_post_meta($post->ID, 'price_list', true));
    tablepress_print_table('id='. $table_id . '&print_name=false');
    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    You will basically just have to evaluate Shortcodes in that Custom Field, e.g. by using something like

    $custom_field = get_post_meta( $post->ID, 'price_list', true );
    echo do_shortcode( $custom_field );

    Regards,
    Tobias

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Table is not displayed if is added in custom field as a value.’ is closed to new replies.