is_page Funtion for Posts ?

Remove the ! before is_page(). The function is_page() is built into WordPress and only tests if the post being viewed is a page or not. The ! stands for “not”, so if you take it out, the code will only return true on that part if it is a page.

JQuery Plugins in WordPress

Your main issue with your code is that you aren’t wrapping your JS in a <script> element. <?php /* Template Name: Price Chart */ /** * Enqueue the table sorter script */ function load_table_sorter_scripts() { //wp_enqueue_style( ‘style-name’, get_stylesheet_uri() ); wp_enqueue_script( ‘tablesorter’, get_template_directory_uri() . ‘/js/jquery.tablesorter.min.js’, array(‘jquery’), ‘1.0.0’, true ); } add_action( ‘wp_enqueue_scripts’, ‘load_table_sorter_scripts’ ); // Now … Read more

page.php is not called, falls back to index.php

If you give a look to get_template_part it says that <?php get_template_part( ‘loop’, ‘index’ ); ?> will do a PHP require() for the first file that exists among these, in this priority: wp-content/themes/twentytenchild/loop-index.php wp-content/themes/twentyten/loop-index.php wp-content/themes/twentytenchild/loop.php wp-content/themes/twentyten/loop.php so your code would default to content.php, not page.php. <?php get_template_part(‘page’) ?> should just load a partial named page.php … Read more

ECHO Executing 4 Times In Head

Filters should return, not echo. function my_content( $content ) { // Something something $content=”my content”; return $content; } add_filter( ‘the_content’, ‘my_content’ ); You can echo, but you’ll need output buffering, like this: function my_content( $content ) { // Something something ob_start(); echo ‘my content’; $content = ob_get_contents(); ob_end_clean(); return $content; } add_filter( ‘the_content’, ‘my_content’ ); … Read more