Hello I've difficulties with jquery on my small site. It had been working fine till I produced a wordpress plugin that utilizes jquery. I enqueue the scripts:


The * is simply covering the website url.

the nstdt.js may be the jquery I authored, and also the jPaginator.js is really a script I acquired online.

ndtdt begins with this particular:


and jPaginator.js begins like:

(function($) {
$.fn.jPaginator = function(o) {

The theme itself includes a small script that runs known as roundabout with this particular within the header.php

<?php  wp_enqueue_script( 'jquery' ); ?>
<script type="text/javascript">
var $j = jQuery.noConflict();

   $j(document).ready(function() {
                var interval;

Fundamental essentials errors I get:

jQuery is not defined
Line 7

    You must use this plugin with a unique element
    Line 2

The initial element factor appears like it may be a mistake from jPaginator, as this is the very first line within the code:

if (this.size() != 1)
    $.error( 'You must use this plugin with a unique element' );

And So I am wondering if anybody has any ideas. Company Used to do look into the site via firebug and jquery is loading, and it is the very first factor loaded. No 404 errors.

Try taking <?php wp_enqueue_script( 'jquery' ); ?> out. Wordpress already loads jQuery automatically, and also you don't even have to call jQuery.noConflict().

Go directly into jQuery(document).ready(function($){...

just make certain the jQuery selector you utilize to initialize the wordpress plugin consists of just one element

for example :

// where #test1 is unique in your page
$("#test1").jPaginator({ <your paramaters>});

// or for a list ( ie : $(".myclass").length > 1 )
$(".myclass").each(function() {
    $(this).jPaginator({ <your paramaters>});