• Resolved avail123

    (@avail123)


    I have installed your plugin, created a new WP page, and copied the following code into it from another support thread. The page still doesn’t display the datatable correctly with the formatting, pagination, sorting etc. What am I doing wrong? I have successfully used datatables before but not within WP. Is this console error relevant

    Uncaught TypeError: Cannot read property ‘options’ of undefined
    at HTMLDocument.<anonymous> ((index):142)
    at i (jquery.js?ver=1.12.4:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
    at Function.ready (jquery.js?ver=1.12.4:2)
    at HTMLDocument.K (jquery.js?ver=1.12.4:2)

    Thanks

    [wp_jdt id=”demo”]
    <table id=’demo’ width=’100%’>
    <thead>
    <tr>
    <th>Name</th>
    <th>Position</th> <th>Office</th>
    <th>Age</th> <th>Start date</th>
    <th>Salary</th>
    </tr>
    </thead>
    <tfoot>
    <tr>
    <th>Name</th>
    <th>Position</th>
    <th>Office</th>
    <th>Age</th>
    <th>Start date</th>
    <th>Salary</th>
    </tr>
    </tfoot>
    <tbody>
    <tr>
    <td>Tiger Nixon</td>
    <td>System Architect</td>
    <td>Edinburgh</td>
    <td>61</td
    <td>2011/04/25</td>
    <td>$320,800</td>
    </tr>
    </tbody>
    </table>

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

    (@avail123)

    FYI I have solved this one. The app gets in a pickle with single and double quotes on the auto-generated code.

    Code in sample above [wp_jdt id=”demo”]
    <table id=’demo’ width=’100%’>

    It is safer to put

    [wp_jdt id=demo]
    <table id=demo width=’100%’>

    Hope that helps someone else.

    Plugin Author AppJetty

    (@biztechc)

    You have used both Quoates at once so it is creating issue. Please use any one and it will be fine.

    Glad that u get resolved ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t get it to work’ is closed to new replies.