Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6955875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:47:40+00:00 2026-05-27T14:47:40+00:00

Hello I have issues with jquery on my site. It was working fine till

  • 0

Hello I have issues with jquery on my site. It was working fine till I created a plugin that uses jquery. I enqueue the scripts:

wp_enqueue_style("nstdt","***/wp-content/plugins/***/css/nstdt.css");
wp_enqueue_style("pagecss","***/wp-content/plugins/***/css/jPaginator.css");
wp_enqueue_script("nstdt","***/wp-content/plugins/***/js/nstdt.js",array("jquery"));
wp_enqueue_script("paginate","***/wp-content/plugins/***/js/jPaginator.js",array("jquery","jquery-ui-core","jquery-ui-slider"));

The * is just obscuring the site url.

the nstdt.js is the jquery I wrote, and the jPaginator.js is a script I got online.

ndtdt starts with this:

    jQuery.noConflict();
jQuery(document).ready(function($){

and jPaginator.js starts like:

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

The theme itself has a small script that runs called roundabout with this in the header.php

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

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

These are the errors I am getting:

jQuery is not defined
Line 7

    You must use this plugin with a unique element
   ***/wp-includes/js/jquery/jquery.js?ver=1.7.1
    Line 2

The unique element thing looks like it might be an error from jPaginator, since this is the first line in the code:

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

So I am wondering if anyone has any ideas. And yes I did check the site via firebug and jquery is loading, and is the first thing loaded. No 404 errors.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:47:41+00:00Added an answer on May 27, 2026 at 2:47 pm

    Try taking <?php wp_enqueue_script( 'jquery' ); ?> out. WordPress already loads jQuery by default, and you don’t even need to call jQuery.noConflict().

    Just go straight into jQuery(document).ready(function($){...

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I have a jQuery example that a thepost-preview div is replaced with the
I have nested ajax calls that are not working in ie7. They work fine
I have a jQuery script that fades in and fades out between containers inside
Here is what I am trying to accomplish. I have a form that uses
I have a piece of jQuery that will not load at all for some
(1. Do you find it useful to have a global jQuery ajax 'helper' that
I have to create one expandable /collapseable panel in jQuery, and facing some issues.
i have been working on a new .net MVC site and have integrated some
Hello Stack Overflow i hope you are well today; I have a form that
I have a css and js id called bob . The jQuery is: $('#bob').text('hello:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.