Okay
  Public Ticket #926105
use variable in to php shortcode
Closed

Comments

  •  2
    bendiro started the conversation

    Hi,

    first of all sorry about my english.

    I have problem with my theme: I can't insert directly your shortcode into some page, but i found the solution on your envato chat where you told to use:

    echo wdt_output_table( $table_id );  

    and it works fine...

    Now I need to use variable on it like

    [wpdatatable id=2 var1=zC001 var2=41TI6500yaUOum]

    please how can use this shortcut in php mode?

    Thanks

    Roberto

  • [deleted] replied

    Hi Bendiro,

    Please try to add our table on the page with do_shortcode method like

    echo do_shortcode('[wpdatatable id=2 var1=zC001 var2=41TI6500yaUOum]');
    
  •  2
    bendiro replied

    Hi Miljko,

    Thank you so much!

    Roberto

  • [deleted] replied

    Hi Bendiro,

    If you like our plugin and support please rate our plugin at CodeCanyon on this link. It means a lot to us. Thanks.