Forums

WP-Table Reloaded
Cannot get sorting etc to work... function missing in footer (7 posts)

  1. searchen
    Member
    Posted 1 year ago #

    Hi!

    I am using Suffusion theme (3.7.3) and would love to get intelligent sorting, when using WP-Tables.

    According to your tech note, these functions won't work if footer.php doesn't include <?php wp_footer(); ?>, then it can't work

    The footer.php for Suffusion doesn't include it: I include the code... can I include this function, without screwing up other functionality.

    I would be grateful for guidance.

    Thanks
    Peter

    <?php
    /**
     * Footer template, invoked when get_footer() is called
     *
     * @package Suffusion
     * @subpackage Templates
     */
    
    global $suffusion_unified_options;
    foreach ($suffusion_unified_options as $id => $value) {
    	$$id = $value;
    }
    
    // Invoke hook - this creates the bottom widget area, the right sidebars etc.
    suffusion_before_end_container();
    ?>
    	</div><!-- /container -->
    
    <?php
    if ($suf_footer_layout_style == 'in-align') {
    	suffusion_page_footer();
    }
    ?>
    </div><!--/wrapper -->
    <?php
    if ($suf_footer_layout_style != 'in-align') {
    	suffusion_page_footer();
    }
    ?>
    
    <?php
    suffusion_document_footer();
    wp_footer(); ?>
    
    </body>
    </html>
    <?php
    if ($suf_site_gzip_enabled == 'gzip') {
    	ob_end_flush();
    }
    ?>
  2. TobiasBg
    Member
    Posted 1 year ago #

    Hi,

    thanks for your question.

    Yes, you can put it right there where you have it in that code, just before the closing </body> tag. And no, this should not break anything.

    Regards,
    Tobias

  3. searchen
    Member
    Posted 1 year ago #

    Hi Tobias... thanks for the reply.

    Peter

  4. searchen
    Member
    Posted 1 year ago #

    Tobias:

    now getting the following error message:
    "DataTables warning (table id = 'wp-table-reloaded-id-1-no-1'): Cannot reinitialise DataTable.

    To retrieve the DataTables object for this table, please pass either no arguments to the dataTable() function, or set bRetrieve to true. Alternatively, to destory the old table and create a new one, set bDestroy to true (note that a lot of changes to the configuration can be made through the API which is usually much faster)."

    What to do now?
    Thanks
    Peter

  5. TobiasBg
    Member
    Posted 1 year ago #

    Hi,

    this would mean that you have two calls to <?php wp_footer(); ?> now...
    Could it be that suffusion_document_footer(); is maybe internally calling wp_footer(); already?

    Can you provide a link to the page with the table, where this is happening? Maybe I can spot something that is wrong.

    Regards,
    Tobias

  6. searchen
    Member
    Posted 1 year ago #

    Tobias... the site is still closed... launch is next weekend 26th.

    I am happy to make you a login... where can i send it?

    Peter

  7. TobiasBg
    Member
    Posted 1 year ago #

    Hi Peter,

    that will work, too.
    The best would be if you email everything: My address is in the main file "wp-table-reloaded.php" of the plugin.

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic