jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is included with WordPress, and available to both themes and plugin developers.

learn more… | top users | synonyms

0
votes
1answer
18 views

jquery code didnt run on my plugin

I use this to hook my scripts and styles to my plugin add_action('admin_init', 'the_box_init' ); // Init plugin options to white list our options function the_box_init(){ register_setting( ...
0
votes
0answers
128 views

Attaching Images to Multiple Rows within Foreach Loop [on hold]

I'm trying to modify the Product Add-Ons plugin for WooCommerce. I need to be able to add an image for each add-on item. So each add-on item row would look like: Name Price Image Each row is ...
0
votes
2answers
70 views

Dynamic Gallery

I'm building a single page website and that means that all the links need to call for post content dynamically. I found this tutorial and with the help from some folks from StackOverflow I managed to ...
0
votes
1answer
54 views

Combining fancybox with multiple thumbnail plugin

I'm combining fancybox(jquery) with multiple post thumbnail plugin. Basically the idea is when the user click the featured image post it will display the image on the secondary featured image. Here is ...
1
vote
2answers
1k views

WordPress Jquery Fade in, Fade out effect

I'm following a tutorial. I've included the hover.js with the following code: $(function() { // OPACITY OF BUTTON SET TO 50% $(".imgopacity").css("opacity","0.5"); // ON MOUSE OVER ...
0
votes
1answer
145 views

slide change on hover with nextgen scrollgallery

My jquery skill is pretty bad, so I can not seem to achieve this. I have a nextgen gallery album that has a scroll gallery showing the images in a slideshow. I want to change the slides on hover ...
3
votes
1answer
437 views

Extend 3.5 media uploader plugin to change button name

I have followed a tutorial on how to upload images using Wordpress' 3.5 media uploader. All is well. I would just like to change the text of the actual upload button "Insert Into Post" to something ...
0
votes
2answers
355 views

Adding media upload button to User Profile page (following a tutorial)

I am currently following a tutorial by Steven Slack on s2webpress.com on how to add an Author Image upload field to a user Profile page. I've managed to get most of it working, except for the part ...
0
votes
1answer
59 views

Execute Jquery when a specific page in my plugin is loading

I am building a plugin and I would like to be able to hide the wordpress admin side menu and top bar when a specific page is shown(or menu item clicked)? Should I call the jquery directly as a ...
0
votes
0answers
40 views

Migrating jQuery gallery to Wordpress

I'm moving my website to Wordpress and I'm trying to migrate my old gallery over. This uses Jquery and picasa. I've tried a few ways of loading the scripts, played with jquery versions, even ...
0
votes
1answer
290 views

force jQuery to load in the head

I've written a plugin which uses wp_enqueue_script("jquery"); to load jQuery. I need to load jQuery in the head and not at the bottom of the body. However, I think that this command is overwritten by ...
0
votes
1answer
42 views

Load an action which is in an url with Jquery

I'm using WP fvorite post. The action to make as favorite is in the url : http://mywebsite.com/?wpfpaction=add&postid=350 So when I click in a button with this url, it make it as favorite. I ...
0
votes
0answers
69 views

Loading individual category post via dynamic tabs

I've been searching for a navigation solution for my wordpress site's front page that loads individual categories and their corresponding post through dynamic tabs. These are tabs or buttons that load ...
0
votes
0answers
78 views

Insert Gallery Doesn't insert shortcode

I have a custom posttype where for some reason the "Insert Gallery" button generates an javascript error Uncaught Error: Syntax error, unrecognized expression: [gallery ids="113,111"] ...
0
votes
1answer
33 views

CSS conditional on custom field value

I am looking to add some CSS rules to an ID conditionally on the value of a custom field value. Specifically: add to id #firstimg the rules: opacity:0.4; filter:alpha(opacity=40); provided that ...
0
votes
0answers
76 views

Check with jQuery value of checkbox from custom admin panel

i am trying to create my first admin panel for my theme. I have a simple checkbox which i think is working. Where is this information stored? Is this information stored in the database? How can i ...
-1
votes
1answer
28 views

AJAX: Wordpress filters inside $html do not work as intended

I am sending HTML content through some AJAX magic and while everything is working as I wish, the output gives something along those lines in the page: "http://permalink.comtitle" It's as if all the ...
0
votes
1answer
408 views

Converting a working AJAX form to work with Wordpress

I have a working html form with jQuery validation and have been submitting the data with AJAX, I am now trying to copy this form in to my own Wordpress theme, but I can't see where I am going wrong in ...
0
votes
0answers
11 views

Wordpress Lightbox plugin not working with jQuery [duplicate]

I have an image gallery set up and divided into about five sections. Everything works great w/ the Lightbox Gallery plugin at this point--click any image, the lightbox comes up, can scroll through, ...
0
votes
1answer
43 views

jQuery form plugin, submit in the wordpress way

Trying to use jQuery form plugin in wordpress site to upload files. HTML markup: <form id="myForm" action="process.php" method="POST" enctype="multipart/form-data"> <input type="file" ...
0
votes
0answers
32 views

Weird WP situation with source code

Our configuration of WP is a bit different than most and i have had this successfully setup and used with a different site/server. But on a new build/site, i am having some issues with the source code ...
2
votes
2answers
6k views

Use latest jQuery in WordPress (admin interface)

I want to use the latest jQuery (and jQuery UI) versions on my admin interface (editing a specific post type that I created). I tried this: // jQuery 1.x wp_register_script('jquery1x', ...
0
votes
2answers
36 views

Plugin Scripts no loading on options page

I've got this in my main php file, but the scripts aren't loading function class_table_scripts() { wp_register_script( 'JavaScript1', plugins_url('js/wcs.js'), array() ); wp_register_script( ...
0
votes
0answers
44 views

Console shows ReferenceError: jQuery is not defined, no clue why!

I just installed FirePHP to help with debugging in WP, but for some reason all it shows is ReferenceError: jQuery is not defined. I have some jquery stuff on the page that seems to be working just ...
0
votes
1answer
305 views

wp_localize_script, variable is not defined in jquery

I try to load a post with Ajax. functions.php: function my_action_callback() { wp_localize_script('jscustom', 'ajax_custom', array( 'ajaxurl' => admin_url('admin-ajax.php') ...
-1
votes
1answer
54 views

Javascript as Jquery Function Call?

Refer to Nice scroll to wordpress wordpress runs jquery in noconflicts mode which means that you either need to write your JS code using the jQuery function call var seq = 0; ...
0
votes
2answers
127 views

Nice scroll to wordpress

I am converting html5 to wordpress Theme. I want to use custom scroll for wordpress. The code DEPENDENCIES It's a plugin for the jquery framework, you need to include jquery in your scripts. I will ...
1
vote
1answer
69 views

How i can widget ID get after drag for wordpress with jquery?

I create custom widget with select option image but first time selected option image are not showing after saving this function work perfectly,I need this function only load after Drag in sidebar ...
0
votes
2answers
58 views

Check javascript file Proper way in functions.php

I am trying to convert html to wordpress. The code in the html was: <script src="js/jquery.nicescroll.min.js"></script> <script src="js/jquery.js"></script> ( jQuery v1.7.2 ) ...
2
votes
4answers
3k views

Check if user is logged in using JQuery

I want to execute custom jquery code which shows login dialog to user if he clicks a button and he is not logged in. How could I do that?
0
votes
1answer
39 views

HTML5 Youtube wrapper works in jsfiddle but not in WP?

I've included few file src's and html into my webpage just as shown in jsfiddle. I put the stuff into php file, since wordpress texteditor tends to ruin code. The video doesn't work even in separate ...
0
votes
0answers
62 views

Masonry and infinite scroll child theme

I have a question about masonry and infinite scroll plugin by Jetpack. I've added in my function.php file this code: function mason_script() { wp_enqueue_script( 'jquery-masonry' );} add_action( ...
0
votes
1answer
35 views

inner jQuery won't work

i'm enqueuing jQuery with wp_enqueue_script( 'jquery' ); (i see <script type='text/javascript' src='http://localhost/wp/wp-includes/js/jquery/jquery.js?ver=1.10.2'></script> <script ...
0
votes
1answer
67 views

Is it possible to get a theme customizer setting from wp.customize using jquery?

I am wondering if it is possible to directly interop with the wp.customize api to get a value of a theme customizer setting. The way I am doing it now is using ajax to get a response from a php ...
0
votes
0answers
14 views

How to make a listing of my custom_post_type that the user can dynamically sort from the front-end?

I have a custom_post_type that I want my users to see a list of, which they can dynamically sort by certain attributes. The list would be in a html table format with pagination. Ideally with a ...
-1
votes
1answer
33 views

Can't get this jQuery snippet to work with Wordpress

I'm using this little gem from CSS Tricks to apply a class to elements once they appear in the viewport window, but it doesn't seem to be working with my WP based site... (function($) { $.fn.visible ...
0
votes
0answers
164 views

add login and signup popup form in header

I use <?php wp_register(); ?> <?php wp_loginout(); ?> to show a link to the wordpress login and sign up screen. It opens up another page. My question is how do I make it so that when ...
1
vote
1answer
30 views

Not sure if enqueuing js scripts properly

When I put this code right above the closing of my body tag it works, but when I try to enqueue it, it breaks. I'm thinking maybe jQuery isn't getting called? The snippet is from here FUNCTIONS.PHP ...
1
vote
1answer
550 views

Masonry and Jetpack Infinite Scroll - overlap issue

I am trying to implement infinite scroll with Masonry on my archive pages on my theme and I have a couple of issues: 1) The "Load more posts" button is hidden behind the initial posts when you first ...
0
votes
0answers
65 views

Infinite scroll not working with Masonry

I've got masonry working, like so: $('.content').imagesLoaded( function() { $('.wrapper, .content').fadeIn(600); $('.index-page .content').masonry({ itemSelector: '.post', ...
0
votes
1answer
141 views

Add jQuery in dashboard when is already added in main plugin page

Hi guys I have added jQuery and my jQuery fail to my main plugin page and it works great by this was. function load_scipt() { wp_register_script( 'reserveit', plugins_url( ...
0
votes
0answers
19 views

Customizer - Update colour picker value based on currently selected radio

been scratching my head over this one and think I need a little help basically im trying to change the current value for a colour picker (in this case the body bg) based on the currently selected ...
0
votes
0answers
74 views

How to duplicate the media upload insert media tab?

I'm currently trying to add custom functionality to the media uploader from my plugin... I basically need to be able to duplicate the functionality that is used to run the Insert Media tab on my own ...
0
votes
0answers
50 views

How can I include scripts in a jquery loaded page, for a jquery wordpress widget?

Iam writing a wordpress widget with the following pages 1) I have master page (master.php) - is the main plugin page - Loads a second page (slave.php) with jQuery 2) The slave page - has php, ...
0
votes
1answer
129 views

jQuery Live Form Validation in Wordpress

I'm trying to implement the form validation that can be found at: http://www.geektantra.com/2009/09/jquery-live-form-validation/ I can get the demo above working, but when I implement it on my ...
3
votes
5answers
5k views

Wordpress and isotope filtering

Im trying to use Isotope(http://isotope.metafizzy.co/) to filter my Wordpress posts, http://i44.tinypic.com/fco55k.jpg this is how my site looks like, i would like to filter posts depending on a post ...
-1
votes
1answer
173 views

How to toggle a div element between two images when click two submit buttons in a wordpress loop?

How to toggle a div element between two images in a wordpress loop when click two submit buttons simultaneously? I have one div, 1st image should select when i click on the first submit button and ...
1
vote
1answer
80 views

What are best practices for including jquery plugins

I am integrating a wordpress site with another site. The integration consists of a form hosted in wordpress that the user fills out and submits to the other site. I'm using a custom page template ...
0
votes
0answers
22 views

Slideshow of posts

I am trying to find a way to achieve the following: -- I have a section in my home page that lists all posts, since i am using bootstrap, i put every post in a 3 col grid, so 4 posts for each line. ...
1
vote
0answers
203 views

How to populate custom field dropdown box based on prior selection?

I have two dropdown boxes for a search that uses custom fields and I need the second dropbown box to be populated depending on the results of the first box. So far I have: <form role="search" ...