Okay
  Public Ticket #1924016
Dynamically insert shortcode
Closed

Comments

  •  2
    Alejandro started the conversation

    Hi

    We have to draw table dynamically in the website. So we are doing an ajax request to get the table with this php code.

    function device_info_div(){

        echo do_shortcode("[wpdatatable id=3]");
        wp_die();

    }

    The table code is inserted in the right div but we can see the table. We already saw the table html code and is fine but the table is not visible.

    Should we execute any javascript code to make the table visible?

    For your reference I left and image of the situation

    Above we are try to use ajax. As you see it just appear the table title. below we are using the static shortcode in the theme [wpdatatable id=3] and the table is visible properly.

    Regards.

      

  •  2,572
    Aleksandar replied

    Hello Alejandro.

    Please provide me a temporary WP-admin login for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party. You can write credentials here just check Private Reply so nobody can see them except us.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables