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
0answers
444 views
“Uncaught SyntaxError: Unexpected token <” in load-scripts.php
Out of curiosity, I'm implementing AJAX in saving post. I didn't know where to start until I found this Q&A. It looks something I can grab and build on. It works but something on the Wordpress ...
1
vote
0answers
25 views
Bypass nonce value while trashing a post
I want to move a post in trash but the condition is that simultaneously I need to delete some more posts. Sample Code:
jQuery(function($) {
$('#delete-action a').unbind();
$('#delete-action ...
1
vote
0answers
40 views
Using window.onload with Ubermenu
I am using a plugin to place this code on specific pages. But it is not firing correctly.
Has anyone had experience working with Ubermenu, WP and jQuery? Do I have to call jQuery into my ...
1
vote
0answers
237 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
0answers
59 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
0answers
257 views
How to bind data-src attribute for the image in the post using jquery?
I'm trying to use foresight.js for responsive image in the wordpress blog. For that I have to add the data-src attribute in the place of src in the <img> tag.
Or I have to get the url from the ...
1
vote
0answers
133 views
Validating a cloned/repeatable input (jQuery)
I'm trying to create a repeatable field an upload image input with image preview for my Theme Options page and I have the following:
function theme_options_validate( $_POST ){
if ...
1
vote
0answers
220 views
Uploading PDF using Media Uploader
I have been using a custom code to upload images to Wordpress using custom metaboxes. Here is the code:
<script type="text/javascript">
jQuery(document).ready(function( $ ) {
var ...
1
vote
0answers
205 views
Load the next posts ajax
I use the below code to display the first 5 results.
<ul class="category_list_view" id="widget_index_upcomming_events_id">
<?php
global $post,$wpdb;
$post_number = 5;
$category1 = $category;
...
1
vote
0answers
99 views
How does Wordpress handle HTML Tables interaction with jQuery
I have javascript that gets the width of a table and reduces the css fontsize of text within the table until the table width is less then the width of its parent div.
The code bellow shows the ...
1
vote
0answers
99 views
Dukapress jQuery(“form.product_update”).livequery is not a function
I have a wordpress site running Seduction theme and Dukapress. Once you add a product and reach the checkout page, the payment and discount button is not clickable. Chrome/Firebug throws the error ...
1
vote
0answers
557 views
How do I locate the exact location where this error is occurring 404 page not found
I recently installed a wordpress theme and lots of plugins. This error appears on blog post after refreshing page for second time anywhere in between the post content. Here's the link to my site:
...
1
vote
0answers
145 views
jShowOff not showing numeric links, shows 'undefined' instead
I made a content rotator with jShowOff in a wordpress site, and wanted to have numeric links to each slide, that normaly comes by default but somehow shows 'undefined', the only thing i found on the ...
1
vote
0answers
229 views
How to reload a select box of posts dynamically?
I'm using custom meta boxes for a project. I have created a custom taxonomy (select box) and I have another select box populated with Posts. I need to only load the posts based on the selection of the ...
1
vote
0answers
860 views
Filter wordpress post categories with jquery/ajax and pagination?
Currently I have a website working with Wordpress and Jquery Quicksand (http://razorjack.net/quicksand/).
However I don't want to show all posts at the same time. I wish to show e.g. 6 posts and then ...
0
votes
0answers
44 views
Loop not appending through infinite-scroll ajax call
I'm having trouble debugging why the InfiniteScroll jQeury plugin isn't loading more of my .boxy class items. So far I've placed the div containing the selectors in different levels of heirarchy, but ...
0
votes
0answers
36 views
Creating a costing calculator plugin. How can the user create the calculations without coding?
I am relatively new to php & wordpress development. I am trying to create a plugin that allows the user to create an unlimited number of costing calculators. Users will be able to add fields ...
0
votes
0answers
19 views
videopress videos are not displayed when loading the content with ajax in a lightbox
I'm using videopress and I'm adding the videos into posts with the videopress shortcode, and when I visit the post I can see the videos and play them, but the problem is when loading the post with ...
0
votes
0answers
32 views
Embedding Separate YouTube Players for Each Video in a YouTube Playlist?
I've seen a lot of plug-ins and things that make new posts out of each video in a playlist, but I'm trying to figure out a way to grab all videos from a playlist and list them as separate YouTube ...
0
votes
0answers
20 views
Settings- API: Creating setting fields on-the-fly
In this tutorial about how to create a settings page, the author creates a select element with style display:none.
<li class="front-page-element" id="front-page-element-placeholder"
...
0
votes
0answers
19 views
How to disable controls in theme customizer?
Edit: I have rewritten the question in hopes I will get a reply from someone who knows the theme customizer.
I am trying to figure out how to disable setting controls in the Wordpress theme ...
0
votes
0answers
25 views
get_option include <br /> in my adsense
As title said I saved in wp-options -> option_value a adsense code but when I try to display to website in the code I get some
"<script type=\"text/javascript\"><!--<br ...
0
votes
0answers
69 views
Advanced Custom Fields and Select2 or Chosen jquery
I'm using "Advanced Custom Fields" plugin and I'm trying to use Select2 or Chosen with the post_object field to provide a nice interface for a multiselect.
The only documentation I have found is ...
0
votes
0answers
47 views
Get image URL from media library in input
On wp-admin/post.php?post=447&action=edit for example I have a link and an input.
The link appears as follows:
<a href="#" class="button insert-media add_media" data-editor="tj_image_url" ...
0
votes
0answers
26 views
Creating an events calendar where users can enter events via a custom post type
I'm building a plugin that enables users to add events via a custom post type. The custom post type with have a meta box with two fields: one for the event date and one for the event time. I know how ...
0
votes
0answers
100 views
Sorting UL Listing Within the TinyMCE Visual Editor in Wordpress
I am trying to use jQuery sortable within the TinyMCE Visual Editor in WordPress. I have had some success in that I can get a UL list to sort, but only if I drag the mouse OUTSIDE of the actual ...
0
votes
0answers
25 views
Problem with function not executing
I am sorry for the long post but I wanted to be thourough in hopes someone could help me figure out this issue. I have been trying to get it working for 2 days with no such luck. I would appreciate ...
0
votes
0answers
28 views
Loading a purchased jquery plugin in a wordpress theme
I purchased a 360 Panorama jQuery plugin that I would like to integrate into my wordpress site. All the tutorials I've read said to include the function add_my_script() and
wp_enqueue_script tags to ...
0
votes
0answers
40 views
jQuery vs. $ - Creating jQuery scripts in JavaScript in WordPress using External Libraries
I am trying to utilize Trent Richardson's Date Time Picker (see here).
I am trying to get the selected time when the popup closes, so I am using the following code (in an external .js file):
...
0
votes
0answers
21 views
customizing jquery with ubermenu jquery API's
I am having a heck of a time trying to get this simple function to work in WP using ubermenu:
My goal is to have dropdown menu-itm-156 fire when the document.ready and control it based on which page ...
0
votes
0answers
32 views
Show the image specified in src
I'm trying to find a way to state "if" there is an image in the description of a Wordpress post show the image specified in src instead of from the data-img attribute. Right now I'm using a JS plugin ...
0
votes
0answers
29 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
0answers
35 views
How to make this scroll script work on just one post
I currently have a jQuery scroller on a website I am developing so that when a visitor hovers over an arrow the content scrolls up and down.
This is fine on single pages, but I now need to include ...
0
votes
0answers
62 views
Post thumbnail to append post content via ajax click event
I've searched hi and dry, tried various tutorials but I just cant get anything to work and its been a good 3 weeks now :(
I have a loop that displays custom post thumbnails in a grid using this ...
0
votes
0answers
126 views
Image slider file 'featured.php' is not automatically sliding images (but works in local server)
I edited the Image slider file featured.php to retrieve the image files from some local folder instead of media gallery (and/or posts). It works perfectly on local server. But when I upload it to the ...
0
votes
0answers
22 views
Convert WordPress SACK code to new admin-ajax
I have been using the TW-SACK library in my plugin using the below code:
<?php wp_print_scripts(array('sack')); ?>
<script type="text/javascript">
//<