WordPress.org

Ready to get started?Download WordPress

Forums

WP-Table Reloaded
table sorting, i don't get it. (4 posts)

  1. genrmx
    Member
    Posted 4 years ago #

    hi,

    first off all sorry for my poor english but i will do my best to explain my problem.

    I have installed you're plugin. and now i'm am trying to create a table with sorting functions.

    Is it possible that the table sets my data directly on albhabatic (so first 1 2 3 4 5 and then a b c d e f g)

    and how can i turn on the functions that people can sort by them self.

    i have turned the function on in the plugin settings. (so i go to plugin options and turn this Select the library to use: on datatables + tabletools and then i go to my table and select Yes, enable sorting of table data by the visitor on.) but when i go see my table on my site then i cannot sorting...

    my website link: http://www.dragonyard.nl/?page_id=72

    please help me?

  2. TobiasBg
    Member
    Plugin Author

    Posted 4 years ago #

    Hi,

    can you check, if your theme's "footer.php" has a call to wp_footer(); right before the closing </body> tag?
    I believe it is missing and that's the reason why the sorting is not available to the user.

    Best wishes,
    Tobias

  3. genrmx
    Member
    Posted 4 years ago #

    hi!

    thnx for you're fast respond!

    i don't have a footer.php i created the theme by myself with a friend of mine. and i work with a main index template and a page template.

    the code of the main template is: `

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php wp_title(''); ?> <?php if ( !(is_404()) && (is_single()) or (is_page()) or (is_archive()) ) { ?> at <?php } ?> <?php bloginfo('name'); ?></title>
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <!--[if IE]><link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/ie.css" media="screen" /><![endif]-->
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_get_archives('type=monthly&format=link'); ?>
    <?php wp_head(); ?>
    </head>

    <body>

    <div id="nav">
    <?php jquery_drop_down_menu(Home) ?>
    </div>

    <div id="wrapper">
    <div id="header">
    <img src="wp-content/themes/Dragonyard/images/header_bg.png" border="0px" />
    </div>

    <div id="content">

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>

    <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    <h2>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></h2>
    <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    </div>

    <?php the_content('Read the rest of this entry »'); ?>
    <?php endwhile; ?>

    <?php else : ?>
    <h2 class="center">Not Found</h2>
    <p class="center">Sorry, but you are looking for something that isn't here.</p>
    <?php get_search_form(); ?>
    <?php endif; ?>
    </div>

    <div id="sidebar">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
    <?php endif; ?>
    </div>

    <div id="footer">
    <p> Copyright © 2010 Dragonyard</p>
    </div>

    </div>

    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-16300420-1");
    pageTracker._trackPageview();
    } catch(err) {}</script>

    </body>

    </html>

    and the code from the page template is:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php wp_title(''); ?> <?php if ( !(is_404()) && (is_single()) or (is_page()) or (is_archive()) ) { ?> at <?php } ?> <?php bloginfo('name'); ?></title>
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <!--[if IE]><link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/ie.css" media="screen" /><![endif]-->
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_get_archives('type=monthly&format=link'); ?>
    <?php wp_head(); ?>
    </head>

    <body>
    <div id="nav">
    <?php jquery_drop_down_menu(Home) ?>
    </div>

    <div id="wrapper">
    <div id="header">
    <img src="wp-content/themes/Dragonyard/images/header_bg.png" border="0px" />
    </div>
    <div id="content">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div class="post" id="post-<?php the_ID(); ?>">

    <h1><?php the_title(); ?></h1>
    <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
    <?php wp_link_pages(array('before' => '<p>Pages: ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    <?php edit_post_link('Edit this entry', '<p>', '</p>'); ?>
    </div>
    </div>
    <?php endwhile; endif; ?>

    <div id="sidebar">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
    <?php endif; ?>
    </div>

    <div id="footer">
    <p> Copyright © 2010 Dragonyard</p>
    </div>

    </div>

    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-16300420-1");
    pageTracker._trackPageview();
    } catch(err) {}</script>

    </body>

    </html>

    `
    I try'ed you're solution with the wp_footer(); but that didn't solve it

  4. TobiasBg
    Member
    Plugin Author

    Posted 4 years ago #

    Hi,

    so you pasted in a

    <?php wp_footer(); ?>

    before the closing </body>?

    Is it still there?

    Can you try again with the WordPress Default Theme?

    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic