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.
-2
votes
1answer
71 views
WordPress and jQuery [closed]
I am fairly new to using jQuery in WordPress and I am trying to write jQuery scripts in a separate file.
What is the difference between the following two syntaxes of setting up the external file:
...
-1
votes
1answer
94 views
Some Shortcodes Not Working [closed]
I am using the Rebirth theme from Scheetz Designs.
I'm trying to update my events calendar, as my current Ajax calendar does not look very pretty. I've tried to install both the Ajax Event Calendar ...
0
votes
0answers
27 views
Only allow customize partial of the email address when register / edit in the user profile
I can not find a fitting answer online, so I need to see all the pros in here for a favor.
I am thinking about only allow user to edit partial of the email address when register, but I do not know if ...
1
vote
2answers
53 views
jQuery breaking my wordpress site
I am including jQuery in my header.php file like this:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" ></script>
But when doing this, it breaks my home page ...
0
votes
3answers
1k views
Adding URL of PDF from Thickbox in a Meta Box
I have created some meta boxes of pages on the theme i'm working on.
The idea is to have a input field, then a button to upload files.
The meta box is working properly.
When I click on the button, ...
0
votes
0answers
54 views
Customizing a php generated link
Good Day
I am using Wordpress, and I am using a breadcrumbs plugin (Breadcrumb NavXT). Now it works great, exept that I would like to customize the way it links to a specific link:
Now here is the ...
1
vote
1answer
276 views
jQuery Ajax() doesn't work when the page is accessed as a WordPress template page
In one file (test_ajax.php) I have a which on change loads another page (registration_form_race_type.php) with a short message via jQuery Ajax(). It works fine when "test_ajax.php" is accessed via its ...
0
votes
0answers
253 views
Loading content dynamically using jQuery.load
So I am working on a website for a client and they want a tabbed content area. Without loading all of the queries on a single page, how can I go about doing this? Right now I have the following for my ...
-1
votes
0answers
162 views
Simple Jquery custom post type archive slide toggle
Hi I'm not sure if we deal with jquery in this section but as it is wordpress related I will ask anyway.
I am currently have an custom post archive that displays all posts(li's) in a month(ul's). I ...
-1
votes
0answers
271 views
Jquery UI Autocomplete from remote source
I've used JQuery UI autocomplete in the past, with a remote php source, but now I'm trying to do the same in WordPress and have come unstuck!
UPDATE
I'm really close to getting this working, albeit ...
0
votes
3answers
513 views
Not sure why wp_ajax isn't working?
I'm trying to get into grips in using AJAX in wordpress, the following code creates a form with an input box using the wordpress feature shortcode [ajaxf].
<?php
add_action( "wp_ajax_ajaxcf", ...
0
votes
1answer
106 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 ...
0
votes
1answer
131 views
Removing jQuery from footer
I am working with HTML5 Blank and I can't seem to get jquery to stop being called in wp_footer(). I have tried adding this to the bottom of my functions file:
function ...
0
votes
0answers
51 views
Javascript not working on site
I've recently created my first wordpress site, and have installed it all manually. It's all working fine, except that none of the Javascript on the site works. I think this may have been corrupted ...
0
votes
1answer
231 views
How to setup a popup registeration page in wordpress with function.php
everyone:
I wonder if there is existing tutorial on how to create a popup registration page in wordpress by utilizing function.php? or is there another way that can do with it?
Thank you!
0
votes
1answer
226 views
JQuery load php - php file without the template
I'm about to start writing a php file that will return a JSON array to be used as a JQuery autocomplete source.
I want to create my source.php file that loads without the WordPress template.
...
0
votes
1answer
54 views
Is there some jQuery conflict here?
I'm customizing a wordpress theme called Accordium, and I have decided to add infinite scroll to it using a wordpress plugin called pbd-ajax-load-posts. In the theme, when you click on a post in ...
1
vote
3answers
4k views
Add a Jquery Datepicker to custom field in post edit
I would like to add a custom field that is set by a jquery datepicker ui in the post edit panel. Im new to wordpress, so Im not sure how to go about adding something like this. I haven't had much luck ...
0
votes
1answer
102 views
Search results load individual post in slide out div
Hi this is more of a solution and advice question.
I want to search my wordpress site and load the search results in a very typical way (unordered list with title, image and excerpt).
Upon ...
0
votes
0answers
133 views
Good examples/resources for using a drop down for filtering jquery isotope? [closed]
I'm working on a plugin that uses jquery isotope and I've also built a widget that will handle the filtering using terms and taxonomies. What I would like is to have a drop down of terms of a taxonomy ...
0
votes
1answer
294 views
Override default jquery ui library with newer version
The latest version of jquery ui core fixes a bug that's on my site. The problem is that Wordpress comes with an earlier version.
How do I override the default jquery ui core? One solution I've found ...
3
votes
1answer
262 views
Help adding image upload functionality to widget
I am working on a small WordPress widget and I am trying to set it up where the user can upload an image. So far, the necessary scripts are loading but when I click the "Media Library Image" button ...
0
votes
1answer
400 views
Javascript block in Twenty Twelve theme
I am authoring a WP plugin, and I have to generate some JS (jQuery) code in "realtime". It is working fine in general, though I've stuck with one problem with the WP 3.5.1 and its default Twenty ...
0
votes
1answer
139 views
reorder a WP_Query, using a dropdown
I have the following loop used to display posts by category & I would like to to re-order them based on a dropdown selector
if (!isset($qry))
$qry = new ...
0
votes
2answers
127 views
jQuery UI inside widget on admin page
I have created a widget that has quite a few settings, and so I am trying to create a tabbed menu (using jQuery UI) inside the widget settings of the admin page.
The problem is basically that tabs ...
0
votes
2answers
414 views
Good solution for adding jQuery tabs anywhere within WordPress?
Is there any solution for using jQuery tabs within the native WordPress scripts? If you know of a way to get any method of jQuery tabs working on the frontend and the backend please share your ...
0
votes
0answers
43 views
Getting Uncaught TypeError with clashing text widget and tabs plugin [closed]
The code for the email subscription from constant contact that I put in my text widget up at the top of this page http://bit.ly/Zz4Faw is clashing with my Skinable Skins tabs plugin.
When I remove ...
-1
votes
1answer
132 views
best way to communicate between php and jquery/javascript
I have a custom post type "pakket", in which I've put all kinds of data in the taxonomy terms. This custom post type has about 50 items, each with their own values for taxonomy terms. For example:
...
0
votes
3answers
3k views
Ajax submit comments
I want to submit comments via ajax. CLick the comment submit button, comments gets posted via jquery's ajax method and the result ("Awaiting moderation...") is displayed on the page.
I went into the ...
-1
votes
1answer
40 views
jQuery “on” handler does not fire on newly inserted widgets [closed]
I have a jQuery script attached to the widget.php page via an add_action('admin_footer') call.
The jQuery executes fine on widget items that were in place when the page loaded. However, on newly ...
0
votes
2answers
35 views
Including Javascript options
For a Wordpress Theme I know javascript files (ending in .js) must be included using wp_enqueue_script in functions.php but how do I include additional javascript code, for example say I need to add ...
3
votes
4answers
824 views
Wordpress 3.5 Media Manager - add a button
In my plugin, I would like to add two buttons to Media Manager (to the left of "Insert Into Post" in "media-toolbar-primary" section), and connect a jQuery action to it.
First one - The "Select All" ...
0
votes
2answers
308 views
Connect Agile Carousel to WordPress AJAX
Originally I hacked together Agile Carousel and WordPress by passing wp-load.php into the AJAX script but clearly that isn't the way to go. I've now read that wp-admin/admin-ajax.php is better, but I ...
0
votes
1answer
65 views
Thumbnail remove width & height function
I wish that when the browser was resized to below 980px, my images were width 100%. The container of the images already have 100%, the problem is that I'm using wordpress size code for thumbnails:
...
1
vote
0answers
251 views
jQuery Plugin to use Wordpress functions in AJAX request
I'm using Chained Selects jQuery Plugin to create multiple chained selection fields. I'm using the remote version of the plugin to build the related options by means of AJAX request from a separate ...
1
vote
1answer
156 views
How do I get my page to load the jQuery UI Effects library?
I'm using javascript for the first time to do some simple animations on the home page of my website. So far I have added the following to my header.php file (which is only used for my home page), ...
0
votes
1answer
124 views
Weirdness in jQuery supplied with WordPress
I've got a problem with the jQuery supplied with WordPress. The following HTML exhibits this problem:
<!DOCTYPE html>
<html>
<head>
<script ...
0
votes
1answer
198 views
change the icon of a custom post type in WordPress to use twitter boostrap
Using jquery, the icons of WordPress admin menu have been changed to use the twitter boostrap icons, done such as:
jQuery('#icon-themes.icon32').replaceWith('<div style="font-size:22px;" ...
0
votes
2answers
136 views
My jQuery is enqueued properly. So why isn't it working?
I'm just trying to add a simple bit of Show/Hide jQuery to a child theme.
$(document).ready(function(){
$("#openbtn").click(function(){
$("#openingtimes").toggle(300);
});
});
I've saved the ...
0
votes
1answer
88 views
Showing All the Posts in the Loop
this code here
<div class="col">
<?php gab_dynamic_sidebar('Subnews1');?>
<?php
$postnr = of_get_option('of_wn_nr8') + of_get_option('of_wn_nr8a');
if ...
2
votes
3answers
2k views
How to handle multiple instance of “send_to_editor” js function
Here is what I am doing:
I Added wordpress media upload with iframe popup when a button or link clicked. And with click of insert into post the image url placed on a textbox.
send_to_editor() ...
0
votes
0answers
110 views
Tabs don´t work on my theme [closed]
I have a tabbed widget here. It won´t work like should with jquery-tabs. Theme is "Sprout". It loads each tab under each other instead of just changing content.
Javascript
...
3
votes
2answers
760 views
Defer Parsing of Scripts
this is my first time to try this "Defer Parsing" thing, and I don't really have an idea how to do it.
Using PageSpeed tool, I found out that one of the reason why my page is loading too slow ...
1
vote
0answers
76 views
Post Comments with Ajax in Wordpress
I use this code to post comments with ajax on my WP blog. It works fine but I display the comment form on my homepage so the plugin only works for the first post (first comment form).
I want it to ...
1
vote
3answers
102 views
Plugin jQuery version VS Theme jQuery version: search for best practice
I have built a Wordpress plugin that is based on jQuery and I am using
wp_enqueue_script('jquery');
to make it all work.
Let say the default version of jQuery loaded by Wordpress is 1.7.2, what ...
0
votes
1answer
201 views
ajax not working in plugin
The code below works beautifully outside of WordPress but as soon as I attempt to execute it inside of WordPress nothing happens:
var js = jQuery.noConflict();
js(document).ready(function(){
...
0
votes
0answers
24 views
Image screen not working [closed]
I'm getting white screen when I go edit in Wordpress admin edit page for any images.
So when I insert an image to Tinymce under edit page/post then click on image icon (on top left of the inserted ...
0
votes
1answer
191 views
jQuery.accordion isn't a function even when enqueued
I'm trying to implement a jQuery accordion for a client of ours. Basically, it's this tutorial (http://wp.tutsplus.com/tutorials/creative-coding/create-an-faq-accordion-for-wordpress-with-jquery-ui/) ...
0
votes
1answer
74 views
Adding wp_list_categories to a specific div that was appended using jQuery
Due to the way my projects menu is coded/styled I'm having some difficulty figuring this out.
I have appended a div to my menu using jQuery, and I want to be able to include an external php file that ...
5
votes
2answers
164 views
Require featured image
I would like to require a featured image on a site I am developing.
I tried the code here: Make featured image required and nothing happened - the JS showed up in the site header, but I could still ...

