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

-1
votes
0answers
23 views

Load a loop on click

I have a loop of some images (custom post type) that are in a tiny slideshow. There are about 30 of them. When the user clicks the tiny slideshow, it pulls up a fancy-box gallery that is populated by ...
0
votes
0answers
9 views

Using jquery to check if elemnent has class constantly [migrated]

Im using stickyJS to create a sticky header with my wordpress website. I have enqueued the scripts properly and the sticky is working perfectly. What i am trying to achieve is to constantly check if ...
0
votes
1answer
920 views

Parse wordpress blog data using json api and ajax

I have seen lots of responses to how to extract data from wordpress blog posts using the json api plugin. Many uses $.getJSON, $.ajax, .responseData.feed.entries, success function() etc. What is the ...
0
votes
1answer
21 views

Can user meta be shown or hidden depending on user logged in status?

Can is_user_logged_in be combined with jquery somehow to add/remove fields wrapped in a certain class? More specifically: I want to wrap the users' phone and email in class "private". Then if the ...
3
votes
0answers
30 views

Media manager multiple selection

I was creating a plugin, and its part should by adding files to custom posts. I managed script to work, but after few changes, to better look and function, it allows only one file to be added, than no ...
1
vote
2answers
279 views

AJAX returns response 0

I'm trying to get user profile values using an AJAX call, but the response is always 0. Here's my PHP: wp_enqueue_script( // Add JS to <head> 'cc-author-change-post-author', ...
0
votes
1answer
42 views

Multiple images with Media Uploader on front-end

I'm trying to implement a multiple image upload on a frontend form, using the built-in Wordpress Media Uploader. I managed to have a single image upload, but I can't find out how to have multiple ...
0
votes
0answers
14 views

Display remaining characters for input field using jquery [on hold]

I'm trying to display the remaining number of characters for an input field using jquery. I found a very simple code, and ended up with these files: my-form.php <input type="text" ...
0
votes
1answer
89 views

Using Jquery submit with ajax request

When the user clicks the 'submit' button on my form, I would like 'this will be echoed back' to be displayed within an alert. The only JS console error I get: Failed to load resource ...
0
votes
1answer
23 views

Set cookie for visitor

I'm writing a new plugin that will allow visitor to vote. After a visitor rated a post, I'd like to block double voting. I think the better way to do it is using cookie, but of course I can't insert ...
0
votes
0answers
36 views

Pass jQuery value in PHP [closed]

I'm using wordpress.org/plugins/easyreservations this plugin. I need to pass selected datepicker value in PHP form url. The value is in jQuery. I have tried using the code to display from date as echo ...
0
votes
0answers
17 views

Can Some one Tell me what is wrong with my Jquery please [closed]

;( function( $, window, undefined ) { 'use strict'; // global var Modernizr = window.Modernizr, $body = $( 'body' ); $.DLMenu = function( options, element ) { this.$el = $( ...
0
votes
1answer
677 views

“switchEditors is not defined” with wp_editor() in jQuery UI tabs

Making a WordPress plugin, using WordPress 3.5.2 I'm using wp_editor() on the front end, inside jquery UI tabs [ajax loading tabs + 2 editors on the same panel], and I'm getting the following error, ...
0
votes
0answers
24 views

send ajax request with formData - uploading file [closed]

Goal of this ajax request is sending files (I will send only text file). If I set processData to false then request fails(it is written textStatus). I read that ContentType and processData have to ...
0
votes
0answers
28 views

The Loop: Not Repeating Styles [closed]

For some strange reason, my loop is not repeating my mark-up/styles consistently. My code is as follows: <script type="text/javascript"> //<![CDATA[ (function($){ //This functions first ...
0
votes
0answers
43 views

Responsive menu that works horizontally for desktop pcs and vertically for smart phones? [closed]

I am looking for a plugin or a jquery plugin that works with touch devices and e.g. combines slidebars and a horizontal drop down menu something like this: cssmenu drop down menu As mentioned, ...
0
votes
0answers
16 views

jQuery Ajax: re-executing plugin on success, when plugin function is NOT known beforehand

I'm a WordPress theme developer and I've building an ajaxified theme having structure like this ... <body> <div id="site-header"> content here </div> <div ...
0
votes
1answer
344 views

Plugin admin page meta_box toggle and order state not saving

I can't get the toggle state and open/close status of meta_boxes on my plugin admin page to be stored. The ajax response is always 0 I'm using meta boxes to hold sections of menu for a plugin. ...
-2
votes
0answers
20 views

Add Scripts to Wordpress

I would like to add the script given below (which I found somewhere on a forum) to my Wordpress theme. Can someone please provide the correct code which I can simply copy to the appropriate files in ...
-3
votes
0answers
14 views

Very good start animation when browsing website [closed]

i like someone to give me patterns how to made this kind of animation on this website http://www.miragealex.com.au/ - see when browsing throw pages on website , how the top slider ,logo, "CALL US" ...
0
votes
2answers
446 views

Wordpress 3.6 and Accordion UI issues?

Anyone else having issues with WordPress 3.6 and the Accordion UI? I have a website that was working just fine till I updated it to WordPress 3.6. The accordion menu stopped working. No errors. ...
0
votes
1answer
852 views

How do I implement jPanelMenu?

I have serious problems trying to implement jPanelMenu to the theme I'm building. The theme is nearly finished, I'm just trying to figure out this menu and I can finally start using it. Anyways, if ...
0
votes
1answer
392 views

How to add fixed position in menu class for Twenty Twelve theme?

I have already looked at many jquery examples on how to make the menu sticky. I have applied these tutorials on clean html pages and they have worked perfectly. However, when I try to apply it on the ...
0
votes
1answer
141 views

chained drop-down menu for custom taxonomy using chained.js — not quite working

So, Im trying to get a chained select to work to select a state then a city with that state. (2 fields). Here is what Ive got: First my function to create the menu using get_categories(). First ...
0
votes
0answers
22 views

Page keeps refreshing with Ajax form

I have a simple form on my site with a simple jQuery Ajax call but the page keeps on refreshing. I know that the form is submitting OK but I can't get the alert to work. <script> ...
0
votes
1answer
488 views

Pirobox Gallery from single image link

I need to have the post thumbnail image link to a gallery of post attachements displayed using pirobox. This is the code i use: <?php if(has_post_thumbnail()){?> <div ...
1
vote
1answer
320 views

Move jQuery to the bottom of the page whilst keeping the WordPress jQuery

I wish to move jQuery to the bottom of the page on my theme, to speed up loading times. Previously I was doing this by replacing it with Google's CDN version but I have been told that is a bad thing ...
4
votes
2answers
125 views

Creating Ajax backend for Specialised Page Template? Should admin-ajax.php be used?

We're scoping an upcoming project that will require the development of a large php web application within an existing wordpress site - this is for our use only and we've no intention of trying to ...
0
votes
2answers
64 views

jQuery does not work

I am working on a project where I need jQuery for. I added this to my functions, and the scripts are loaded in my header if I watch my page source, but jQuery doesn't work. What am I doing wrong? ...
0
votes
1answer
13 views

jQuery AJAX add json2 dependency?

I am working on a voting system in Wordpress with jQuery and AJAX. To make this voting system work I need jQuery in my theme. So wrote the code down in my functions.php. But for some reason my script ...
1
vote
1answer
20 views

Format numeric symbols in titles

When I add title post as: this - is - post I view code source : this &#8211; is &#8211; post How to format code source as: this - is - post Error: I'm user jQuery UI autocomplete code ...
0
votes
1answer
99 views

jQuery does not work on WordPress editor

I've added some content to WP's editor, however the new content does not respond to the click behaviour. Here's how I've added the content: add_filter( 'default_content', 'custom_editor_content' ); ...
1
vote
3answers
278 views

Widget “Save” resetting jQuery hidden fields

I have a widget plugin that I've created, that lists about 10 fieldsets. jQuery runs at the beginning and hides and fieldsets that have no values. There are also buttons that allow to "Add" and ...
1
vote
1answer
778 views

Intergrating agile carousel to wordpress: how to write the ajax_callback function

json is totally new to me how to write an ajax_callback function for agile carousel to work in wordpress? Below is the jason data format that I need to write as php arrays for it could be parsed by ...
0
votes
1answer
323 views

How to make featured image thumbnails on index page load smoother?

I'm using a theme called Hatch Pro, which is a gallery based theme and the index page displays the posts using the featured image. You can see it here. On slower browser environments, the images ...
2
votes
2answers
72 views

Is jQuery included in WordPress by default?

When I downloaded the latest version 3.8.1, inside wp-include/js there is a jQuery folder. Can I assume that WordPress will always include it, meaning I don't have to make my own call? E.g. ...
0
votes
1answer
115 views

Comment form vaildation

I've build a custom comments form which hooks onto the default comment_form() in twenty twelve child theme. Here is my code functions.php function pietergoosen_custom_comment_fields($fields) { ...
0
votes
1answer
261 views

WordPress ACF - Date picker

So basically I have an events page set up with 'start date' and 'end date'.. In the back end i have Advanced Custom Fields jquery Date Picker to select these dates. The setup of these fields are as ...
0
votes
1answer
41 views

Drop Down menu expanded by default (on front page) [closed]

For this site users seem to have difficulty finding the site's content that is accessible through the 'Data' drop down menu on the top left. To improve this I would like to have this drop down menu ...
0
votes
1answer
273 views

Smooth Scroll and Slider Conflict

my website is http://eclat.sg/gourmet running on Wordpress(obviously.). I have a slider on the front page and I've installed jQuery Smooth Scroll plugin. The plugin works awesome but unfortunately, it ...
0
votes
2answers
40 views

Load random posts without refreshing page (jQuery)?

I really hope that someone can help. I would like to load random posts on the homepage when a "LOAD NEW MESSAGE" button is clicked. We have 200 short messages loaded as posts in Wordpress. ON the ...
0
votes
2answers
1k views

MapPress Easy Google Map in Jquery Tabs Problem

I am using MapPress Easy Google Map with the following code in my custom theme: <?php $mymap = new Mappress_Map(array("width" => 600,"height" => 300)); $mypoi_1 = new ...
0
votes
1answer
21 views

Save jQuery UI Sortable on Wordpress

I have basic jQuery UI sortable code that works perfectly. I just want the position of each item to save when a user changes it. I am using Wordpress multisite version 3.8.1 and each site will have ...
0
votes
0answers
43 views

Load a form via jquery/ajax that contains strings for translation (WPML)

I have three forms that I'm loading dynamically via jQuery/ajax into my theme file as follows (code below from javascript file that gets enqueued to the footer): var root = location.protocol + '//' + ...
0
votes
0answers
27 views

Post Rating System with wordpress

I'm using a Post Rating System with wordpress and jQuery, i followed this tutorial for that. ` jQuery(document).ready(function(){ jQuery("a.like:not('.voted')").live("click",function(){ ...
0
votes
0answers
22 views

Custom class on Media image inserted in the editor

I would like to have different classes added regarding the options selected during the media insertion. When inserting a media, there are 3 options (media file, attachement page and custom URL) ...
0
votes
1answer
24 views

Fetching posts from wordpress function in ajax

I'm trying to fetch posts in ajax. Everything is working but It is showing only one post. Please check my code and tell me if something is wrong function ag_get_posts() { global $post; $args ...
0
votes
1answer
549 views

infinite scroll page number

On this guys blog he's using infinite scroll and it's appending the page number to the url so when you click on a story and go back, you start off where you were. http://alex.clst.org/dbd/ I'm using ...
0
votes
1answer
268 views

How to include plugin function in theme's functions.php file

Good day, I'm trying to reduce the jquery dom manipulations by including the right plugin functions in my theme's functions.php file. For example, I have a link which triggers a jquery dialog, which ...
0
votes
0answers
8 views

Hashbang, pjax, or djax for dynamic pages? [migrated]

I am modifying a current theme that uses child pages loaded into tabs via jQuery and hashtags. For example, http://example.com/category would be the parent page with tabs. Clicking on one of those ...