Try placing your code in this
(function($) {
// Inside of this function, $() will work as an alias for jQuery()
// and other libraries also using $ will not be accessible under this shortcut
})(jQuery);
I’m suspecting your code uses $
, which is normally an alias for jQuery
but doesn’t work globally because WP’s version of jQuery
is in no conflict mode. $
will work if the code is placed in an enclosure such as the one above.
Related Posts:
- WordPress 3.5 Media Manager – add a button
- jQuery plugin only in one page/post
- jQuery AJAX call not executing in Plugin
- Add jQuery to WordPress page
- How do I use WordPress PHP functions in my Javascript code?
- Disable wordpress from including jQuery in the head section
- What’s the point of using WordPress’s built in admin-ajax.php?
- Admin-ajax.php is dying “0” without processing function
- Get image URL from media library in input
- Plugin jQuery version VS Theme jQuery version: search for best practice
- jQuery Plugin to use WordPress functions in AJAX request
- how to include a simple jquery file into a wordpress plugin
- Pass a php string to a javascript variable
- Calling JavaScript file with Custom Plugin
- Problem in loading javascript in footer
- Using jquery migrate for plugins incompatible with jquery 1.10.2
- How can I implement an Add to Collection function on my Image Gallery to be downloaded later?
- Best approach to fetch data from wp options to js file or php file
- custom changes removed after plugin update
- Adding a slider captcha to the comment system
- How to put JQuery/Ajax inside shortcode?
- Plugin for a text modal box [closed]
- Can someone please tell me what is wrong with my plugin?
- Is there a way to set the default active tab on Post UI Tab pluggin?
- looking for navigation plugin (accordion) [closed]
- wordpress site | All-in-one-cufon IE Issue
- WordPress function not being called from jQuery method
- Ajax contact form widget plugin data not insert in database
- Time consuming callbacks in customizer
- Modifying a .js Function for Print [QZ Tray, WooCommerce POS]
- jQuery for custom plugin not working with Divi theme
- How to prevent plugins from loading jQuery
- Loading a purchased jquery plugin in a wordpress theme
- Post Comments with Ajax in WordPress
- Integrating jQuery Datatables with Editor into wordpress admin
- how to insert data in wordpress table usnig jquery ajax
- Stop WordPress processing Javascript as text
- How does one include the JQuery UI plugin to wordpress and enque it correctly in a plugin form?
- How to add a dvi tag to a shortcode then change a generated text using jQuery
- How to best create a jQuery Slider to display a native wordpress gallery?
- JQuery needs to be defined in , but Gravity Forms is defining it in the
- Custom meta box with jQuery.sortable custom post type list
- Load CSS files in header of Bones theme?
- Separate jQuery for Individual Comments?
- FancyBox JS stopped working on multiple sites. Custom plugin responsible. Urgent help needed
- Portfolio Slideshow Sliders Behaving Oddly When in jQuery Ui Tabs
- jQuery(‘#news-ticker’).cycle is not a function
- JS Plugin not executing the js correctly. Trying to make all internal links scroll smoothly
- Call javascript functions from each page
- Javascript from Easy-Fancybox place into footer
- WordPress plugin isn’t loading completely
- jQuery slider widget similar to cnet.com
- FacetWP breaks jQuery events
- Jquery POST Ajax Return null data in wordpress
- WordPress jQuery Post – Amending Variable Value Within Function Command
- Overriding inline !important CSS with Javscript code snippet with media query
- WP Ajax DB issues
- Get the link title attribute and send it google analytics as custom label via google tag manager using beehive pro for WordPress
- Ajax Call not Working in Plugin
- jQuery Ajax not loading page with ACF fields
- Mixed content error after adding SSL certificate
- update_post_meta is not working for me when I use e.preventDefault for update button
- Website always load twice on start
- Hide button after form submit and save state to localstorage
- jQuery works instead of $
- checkout stripe with plugin contact form
- Uncaught TypeError: Cannot read property ‘cycle’ of undefined
- myStickymenu hide on scroll up to certain Y values
- How to solve Blocked a frame with origin from accessing a cross origin frame error in wordpress?
- jquery plugin won’t fire when hamburger class element clicked
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Overwriting Plugin’s Ajax callback function from theme
- Help with customising love it plugin (use within foreach)
- Can’t find variable is_single in my jQuery plugin
- How to install jquery dotdotdot plugin for WordPress?
- Specific plugin script not working on subdomain
- Javascript in plugin not working
- Not getting result using ajax on wordpress
- Theme Load Error
- How to Add Jquery FullCalendar in wp plugin in admin
- Creating a comments voting system
- Plugin program: JQuery not working in this plugin
- What is the process for reimplementing a back up WordPress?
- Ajax, jQuery and WordPress
- Hyperlink to execute PHP
- How to get site homepage from plugin?
- Add jQuery in dashboard when is already added in main plugin page
- jQuery loaded in wrong order for non-admin page views only
- Trying to override/intercept a PhotoMosaic gallery link in WordPress using jQuery
- PHP and Jquery pass value from form. Update function on DataBase
- WordPress plugin ajax post parameter
- get_option include in my adsense
- Plugin use of ajax/jquery depending dropdown
- Load css classes after using ajax calls
- How to resolve these findings from security audit
- Integrating WordPress Content into a jQuery Slider
- Animate like Stack exchange frequently asked questions [closed]
- Change page content based on dropdown selection
- Ajax button “Load more” is not loading correct language version posts for logged out users
- WordPress GiveWP Plugin showing blank page in none default theme [closed]