Title: Plugin doesn´t sort in own template
Last modified: August 22, 2016

---

# Plugin doesn´t sort in own template

 *  Resolved [Jappi](https://wordpress.org/support/users/jappi/)
 * (@jappi)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-doesnt-sort-in-own-template/)
 * Hi,
 * we have a small self created template (some years old). With this template we
   can´t sort the table. If we change the template (like tewntyfifteen) evertything
   is fine.
 * Are there special requirements for a template?
 * Thanks,
    Jan
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-doesnt-sort-in-own-template/#post-5921904)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Yes, WordPress themes will have to fulfill three basic requirements here:
    There
   must be a call to the `wp_head();` function right before the HTML `</head>` tag(
   likely in a file “header.php”), there must be a call to `wp_footer();` right 
   before the HTML `</body>` tag (likely in a file “footer.php”), and the theme 
   must use the `the_content();` template tag function to display the post/page 
   content (likely in an `index.php` or `content.php` file). Those three functions
   guarantee that the necessary JS files and calls can be embedded properly.
 * Now, there might be other JS issues on the page that make the browser stop executing
   JavaScript, so that the sorting would also not work. To find those, it would 
   be good if you could post a link to the page with the table where this problem
   happens, so that I can take a direct look. Thanks!
 * Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Plugin doesn´t sort in own template’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-doesnt-sort-in-own-template/#post-5921904)
 * Status: resolved