Tagged Questions

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
2answers
894 views

Function won't run onclick using Ajax

Ok, so my code is meant to be pulled from the function using the jquery code below, but it isn't pulling the code and I can't see why not. My pages code <script> var click_to_choose_user = ...
-2
votes
1answer
130 views

jQuery Issue with Smooth Slider Plugin

I have the Smooth Slider plugin installed and it works on the default theme. I selected it as Display Slider on this Post/Page, and used the template tag for that specify page.php as <?php if ...
0
votes
0answers
75 views

Infinite scroll wont work on mobile browsers. Works on non mobile systems

I implemented infinite scroll on my WordPress blog using the following script: <script type="text/javascript"> var abc=66;//what is abc doing? $(window).scroll(function () { ...
0
votes
0answers
34 views

Ajax not working in Wordpress but works fine elsewhere?

I'm using an image gallery plugin with WP theme twentyfourteen. I embedded a submit field in one of the plugin's files which executes just before the gallery is loaded and sorts the images. All the ...
1
vote
1answer
183 views

wpColorPicker: How update colors on input value update?

Setup: An input field that has attached a wpColorPicker instance. An external event that changes the input value color. Issues: On value change the color shown by the colorpicker doesn't get ...
0
votes
0answers
441 views

Load Next Posts With AJAX not working with custom post type

I am using this plugin to load in my next posts with AJAX. I have implemented it into my site and it is showing the load more posts button however once you click on the 'load more posts' button it ...
0
votes
1answer
380 views

Form isn't inserting data into database with ajax plugin

I've been working at this for weeks without success. I've figured out problem after problem with the code, but none of the corrections seem to fix my core problem. The form doesn't insert anything ...
-1
votes
1answer
57 views

Loading jQuery library from WordPress admin

When we are developing Themes, we are taught to enqueue the jQuery library if necessary, because no jQuery library is available on the front-end of WordPress (if I'm not wrong). But when we are into ...
0
votes
0answers
81 views

Like/Dislike Bar not working when updating

I'm trying to integrate Like/Dislike Bar in a Wordpress plugin . It Works Properly when total page reload/refresh . But whentime Like/Dislike Bar refresh from ajax that time its not working . This is ...
0
votes
0answers
20 views

Multiple Menu Selections to compile data on new page

Need to create a menu box (vertical stack of 4 selections) on a page, which then calls from either a database or CSV file, final combination of items required as follows: Selection 1: >MenuItem< ...
0
votes
0answers
44 views

Customizing the built-in Media Playlist

I have a simple challenge I can't quite seem to make any progress on: Get the current track (or video) playing and display a link to a transcript of the song. This should be a simple task (and the ...
0
votes
0answers
42 views

adding fields dynamically in admin panel

I'm writing a plugin, all backend is finished and I want it to add quite big sets of data, so I want to add more fields dynamically like this: I got some simple adding form, but it takes long time ...
0
votes
0answers
833 views

jQuery / jQuery-UI Tabs Will Not Show New Content

Thanks in advance for any help you can offer! I am using the example posted here as a proof of concept on my website page. I am using "Use Google Libraries" to load the jQuery and jQuery-UI libraries, ...
-1
votes
1answer
202 views

Contact Form 7 submission does not complete [closed]

I have a Content Form 7 Version 3.8.1 form which seems to function perfectly in that the validation events all work and when submit is clicked the console shows no error, a 200 response comes back ...
0
votes
0answers
159 views

403 'GET' Error on Wordpress Jquery Autocomplete

Overview: I am trying to create a simple jquery autocomplete in a wordpress theme, on a custom template page containing a form. I wish for it to work both front-end, for logged in users, and the ...
0
votes
0answers
318 views

Pinterest Chrome/Safari Extension not working on WordPress Site

I am working on a client WordPress website - http://simplyconvivial.com. For some reason the Pinterest Chrome/Safari extension is not pulling the images correctly on this site. When you click on the ...
0
votes
0answers
272 views

Inserting image into meta box row using jQuery - always adds to first row

I'm having a problem with inserting images into a custom post type meta box. I have a button that adds a row to the DIV and you click on the Select Image button to use the WordPress media selector. ...
0
votes
1answer
44 views

Why this plugin is not working?

I am testing jQuery in my wordpress plugin. Two files 1. main_plugin.php 2. js_plugin.js (Both in the same directory HelloWorld). CODE: PHP FILE: <?php /* Plugin Name: jQuery Test Plugin Plugin ...
0
votes
2answers
66 views

Unexpected script loading order

I'm trying to make scripts load in a certain order, and am getting unexpected results. I'm using this script: function tallulah_scripts() { wp_enqueue_script( 'header-js', ...
0
votes
0answers
465 views

How can I get the jQuery Autocomplete demo to work correctly?

I'm experimenting with jQuery Autocomplete, and I'm having trouble getting it to work. The first bit of code you see below is almost an exact copy and paste from from the demo: ...
0
votes
0answers
33 views

wordpress plugin setting page not enqueueing jquery?

on a setting page for my custom plugin i ahve the following: function wbvpe_load_scripts($hook) { global $wbvpe_settings_page; if( $hook != $wbvpe_settings_page ) return; ...
0
votes
1answer
28 views

jquery not working correctly in plugin options page?

I have created my own plugin which has a custom script attached to it. I have added this in the correct manor like this: add_action('admin_enqueue_scripts', 'add_search_script'); function ...
0
votes
0answers
142 views

Sorting Posts Based On Meta Value Using AJAX

I am trying to short posts on frontpage/archive pages using AJAX. The AJAX call seems okay but nothing displaying. Here is the JS: jQuery( document ).ready(function() { jQuery( ".sbyp" ...
0
votes
1answer
559 views

Unexpected token ILLEGAL, even on clean install - jquery-issue?

update i get even more issues and errors; POST http://literaturen.org/wp-admin/admin-ajax.php 200 OK 1,39s jquery...=1.11.0 (Zeile 4) GET ...
0
votes
0answers
77 views

Update field in Theme Customizer via Javascript

I am working with the Customizer and I have made some custom controls which is cool. Now I'm trying to create a relationship between two controls whereas the input of one control passes through some ...
0
votes
1answer
379 views

Right way to update widget on dynamic new input field

I have code to add an input field dynamicly in my theme. I have testd it, as a metabox and it works. But, not in a widget. First add and update, that codes work, but when I refresh page or try to ...
0
votes
0answers
29 views

Interactive tagline or similar

I would like to either (a) edit the tagline to include an html snippet, or (b) add my (interactive) contact details to the header, in the same area as tagline, but aligned to other side. I ...
0
votes
0answers
17 views

Responsive framework - edit child js

Is the responsive framework used by WordPress custom to WordPress, or is it a standard design? Where is the js file located that controls behaviour of the grid system used by theme twentytwelve? Is it ...
0
votes
1answer
125 views

jquery-issue: cannot load the basic jquery

I am pretty new to wp. I have installed wp 3.9 on a demo site. I wanted to configure and add some plugins; eg the facebook wp-rss-multi-importer I've noticed that I cannot do some configurations ...
0
votes
3answers
50 views

Invoking Jquery in a Plugin

I am using the following code in my plugin : <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <?php echo "<script ...
0
votes
1answer
458 views

Bootstrap with Flexslider jQuery Issue

I'm building a Wordpress theme using Twitter Bootstrap. I have registered and enqueued the bootstrap .js file (including others) and everything works fine. This is my code: wp_register_script( ...
0
votes
1answer
58 views

Possible jquery / library conflict in plugin usage

I am using the free version of the plugin: WP Feedback & Survey Manager but for some reasons the tab style is not rendered, and I guess it's for a javascript/jquery problem, eventhough I don't ...
0
votes
0answers
124 views

Ajax contact form

I have a custom contact form that I am trying to process via Ajax. I am a bit newbie in Ajax and more using it on WordPress. I have built it but it doesn`t send the email and retrieve "0". Php ...
-2
votes
1answer
356 views

Load loop images on click / defer image loading until click or other event

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
1answer
26 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
1answer
256 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
1answer
1k 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
1answer
138 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
130 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
0answers
84 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> ...
5
votes
2answers
630 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
1answer
54 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 ...
0
votes
2answers
133 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? ...
1
vote
1answer
41 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 ...
2
votes
2answers
127 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
255 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
2answers
672 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
1answer
243 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
126 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
40 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) ...