Ajax - The core of WordPress uses Ajax only in the administration screens. For instance, Ajax is used for instant updates when you are doing comment moderation, and when you are adding and deleting items from lists such as categories, blogroll, and posts; Ajax is also the technology behind the ...

learn more… | top users | synonyms

0
votes
1answer
267 views

Pass data back to TinyMCE from Thickbox

I've added a shortcode button in the TinyMCE editor in the page/post pages that opens up a Thickbox form. The button is working; it opens up the thickbox form like it should. However my stumbling ...
1
vote
1answer
283 views

How to localize inline script called with ajax

I have a loop of posts and I allow a user to edit each post using ajax. When the edit button is clicked for the post I use ajax to retrieve the template part containing the edit form for the post. ...
0
votes
1answer
70 views

An adiitional function fires on my AJAX submit

I am working on a small community style website for my family to use. Mainly it is a small version of a social network so my nieces and nephews can have fun with each other. I have set up "freinding" ...
1
vote
1answer
428 views

ajax for filtering posts by category in wordpress loops

I've been looking around for a way to filter my posts on http://www.waziproject.com/wazimagazine/ without reloading the page. So my question is if anyone can help me out to turn the following into a ...
1
vote
1answer
221 views

Update get_pages using ajax on form select change

I have the following code in my page template file, (below), which works ok when used with the normal form submit. What I'm trying to do is update the get_pages variables using ajax (no page ...
1
vote
1answer
55 views

Execute a function using ajax

I have a function called function getSingleAmazonProduct($asin=''). It returns an amazon product. I have a form field to enter the $asin. <div id="asinform"> <form ...
0
votes
1answer
255 views

AJAX function not working [closed]

One person on the site wrote a function, but I do not know why it works. This function displays a random quote. The functions implemented the ability to download new quotes via AJAX (link New Quote), ...
-1
votes
2answers
214 views

How can i use ajax with check-box categories

Hy how can i build a search filter someting like that ( ex: http://tvpedia.org/gen/actiune) with wordpress, I have a custom post type name: Locatii, that custom post type have categories. Ex: Cat ...
2
votes
0answers
617 views

How to add to cart via AJAX Woocommerce

I have been searching for a while, this. I want to add an item via AJAX. When you add an item to a cart in Woocommerce the page reloads with the GET parameter add-to-cart="The current product ID". I ...
4
votes
1answer
146 views

Saving (Updating) Post / Page Edits With AJAX

One of the major frustrations while editing posts/pages is that after saving, two things happen: The admin page is reloaded, which takes time More importantly, the cursor position is lost If ...
3
votes
2answers
323 views

Use AJAX in shortcode

I have the following code to the shortcode to display a random quote. Question: how to make a button display a new random quote? I mean, that would hit the button and show you a new quote (without ...
3
votes
1answer
207 views

External/non-WP rewrite rules

I have a fairly complex wordpress with multiple sub-directories: example.com/sub1/ example.com/sub2/ I'm trying to implement some history/bookmark support, and to do that I need the URLS containing ...
3
votes
2answers
245 views

the_title() and the_permalink() won't work on AJAX calls

I've run into a strange problem. I have a custom loop built with get_posts that works fine when loading the page normally: <?php $rows = get_posts(array( 'post_type' => ...
0
votes
0answers
44 views

How to add wordpress tag on the front end? [closed]

I'm building a plugin that user can add wordpress tag on the frontend script. How can i do that using $wpdb or something?
0
votes
1answer
172 views

Loading a post's content, into a div outside the loop, when it's title is selected in a list

I am building a site in wordpress where at a certain part there is a container that has a list of post items (see it as a menu/sidebar), and an empty space where I will load content. When you click on ...
0
votes
1answer
159 views

Call plugin with php function

This plugin only works as widget. I need call this plugin with php function. How to modify this code ? <?php /* Plugin Name: AJAX Calendar Plugin URI: ...
0
votes
2answers
203 views

How to get a value from PHP in Jquery through Ajax

I'm trying to get a value from a PHP function through Ajax and save it in a variable in jquery. The PHP; add_action( 'wp_ajax_mark_as_read', array( &$this, 'readen_color' ) ); public function ...
0
votes
0answers
91 views

Get children with jQuery and wp_list_pages

I'm looking to create a button on a parent level page. If you click that button it runs through each of its children and performs some action via Ajax. The output is spit out back to the parent level ...
1
vote
1answer
186 views

Convert this relative path to absolute

In the .js script below, the ajaxPath reference breaks when the containing page is off the root directory of the site. Is there a workaround to make this path absolute? ...
0
votes
2answers
3k views

How do I Upload/Import Form (Input) Files via. Ajax function?

I keep running into an issue getting the file(s) added/switched to ajax so that the server ajax handler can deal with the rest. How can I get the $_FILES to be passed the same as with the default ...
2
votes
1answer
126 views

Conditional Ajax inclusion

I have a custom interface that uses 30+ ajax files while running... some files are only used in category.php while othere's are only used in page.php... i include the ajax loader php files in my ...
0
votes
1answer
62 views

How to check if I am in admin_ajax?

Right now for my plugin, I am using in_admin() to determine if the user is in the frontend of the site or in the admin area. However, the problem occurs when plugins use admin_ajax.php to process ajax ...
2
votes
1answer
866 views

Load tinyMCE / wp_editor() via AJAX [duplicate]

Possible Duplicate: How to load wp_editor() through AJAX/jQuery There are several questions about this (like this, or that), but none of them provides a solution to me. The situation: I ...
0
votes
1answer
307 views

Ajax response is always 0

I am trying to figure out why my Ajax response is always 0. I am trying to load in meta data into a Jquery UI Dialog box based on the ID of the link clicked. All of this is in a single.php template ...
2
votes
1answer
55 views

Redirect users away from Admin breaks ajax

Tried to make a simple redirect for some users I don't want to access the wp-admin/, so I did this code: function no_admin_access() { if ( !current_user_can( 'delete_posts' ) ) { ...
1
vote
1answer
37 views

Ajaxify calendar

I need ajaxify "next" and "prev" links in wordpress calendar for navigation of months, without updating the page. There is some plugins for this - but I call calendar without using widgets - ...
0
votes
1answer
208 views

Figuring out how to use wp_update_post with ajax on frontend

I've been working hard trying to implement a frontend post editor "sidebar" on each post when I'm logged in. You can see what is going on here with a test post: ...
0
votes
1answer
101 views

Using email_exists() wp function in an ajax request

I'm requesting the wordpress function if (email_exists($email)) { ... } from a file (email_check.php) via ajax. Using this function is causing a server error though. The origin (from an input text ...
0
votes
1answer
173 views

slideshow is not showing in a post call with ajax

this is the code I use to call ajax posts in the same page. It's works fine but when the post is load the slideshow in the post (add via short code) is not showing.... the ajax call ...
0
votes
1answer
92 views

How to implement a plugin featuring foursquare like check-in

I need to add a check-in feature (very similar to foursquare check-in) in worpress based site. There will be "Check in" button at the top of the web site, and clicking on it the visitor will be ...
0
votes
1answer
73 views

Adding a time stamp on post view

Hi there we are using this ajax function to update the views of our custom "posts" if( !empty( $_REQUEST['action']) && $_REQUEST['action'] == 'update_view_count' && ...
1
vote
1answer
159 views

Embedded Twitter feed won't render nicely when loaded via Ajax

If you paste a Tweet URL to your post, Wordpress will nicely render it. But if I load posts via Ajax, the URL gets replaced by a Blockquote, but not with the nicely rendered one. The class of the ...
1
vote
2answers
514 views

Check if username exist with AJAX

I've created a custom registration form for a WordPress MultiSite installation. It allows registrations of new blogs and users. I want to check with ajax if a given username is available. This is what ...
0
votes
1answer
330 views

WP_Query class not found

The idea is simple. I have a drop-down menu generated with get_categories(). This outputs a list of categories in an unordered list, each in it's own li element. I'm getting the text values of those ...
0
votes
1answer
120 views

How to keep track of when a vote is cast?

I have setup a great voting system on my website, but since I want to sort the top rated posts by week, month and alltime...I now need to able able to keep track of when a vote has been cast. Could ...
2
votes
2answers
507 views

The correct way to call posts with ajax

I'm trying to write an image gallery plugin with jQuery. I'm using jQuerys $.post AJAX method to send and receive info from the relevant post page. Basically I'll be looping through the attachments ...
0
votes
1answer
410 views

Duplicate posts showing up in loop using infinite scroll

I'm experiencing an odd issue using Infinite Scroll for the WP_Query loop on my homepage. Half the time when the second page fires, I'm getting a few duplicate posts showing up in the second set. I ...
0
votes
1answer
316 views

What is the best way to implement ajax based pagination on custom query based templates?

We can use multiple plugins like wp-pagenavi or wp-paginate for implementing pagination for wordpress sites and making it ajax based using the following code: jQuery(document).ready(function(){ ...
1
vote
1answer
250 views

Load WP content with ajax less server demanding and faster than normal page loading?

This is a technical doubt I had after reading some articles about WP ajax process (cannot find them though). Is it faster and cheaper to load WP content (any content, page, post, widgets etc...) ...
2
votes
1answer
66 views

How to get full content including template HTML

I'm looking to get the page content between the header and footer (as Wordpress already does) that includes the template HTML (as this is going to be an AJAX request). Is there a function that will ...
4
votes
1answer
98 views

Prevent reload confirmation after AJAX save

I am saving information in the admin panel via ajax. The problem I'm running in to is the "Are you sure you want to navigate away from this page" popup appear, even though everything has been saved. ...
0
votes
1answer
83 views

Ajax call does not work for this custom code

I have this ajax call which gets the value for catname: jQuery('.bio a').click( function(){ var catname = $(this).closest(".bio").data('category'); alert(catname); jQuery.ajax({ ...
0
votes
1answer
256 views

using Ajax: call to undefined function get_option

I am using ajax on my template to load a file called counter.php. When I click a button, it is supposed to increase the counter. But when I click the button I get this error "Fatal error: Call to ...
0
votes
3answers
416 views

Force redirect single.php to index

I want to make a force redirect for single.php to index so that it is never reachable by direct access (the site is built in a way that you retrieve all the content on the index page, still need to ...
0
votes
0answers
14 views

Approach for ajax driven multilingual one page site [duplicate]

Possible Duplicate: Force redirect single.php to index I'm working on a multilingual one page ajax driven site based on WP. This causes a couple of issues (and headaches)... I don't want ...
0
votes
2answers
115 views

Syntax for a function in order to get post's title in JSON encoded response [closed]

I use the following code in functions.php in order to obtain all the images attached to a post so I can retrieve them via AJAX. <?php function get_all_images($post_id=0, $size='bigger', ...
1
vote
1answer
299 views

Error when posting comment form: The error is TypeError: e[h] is not a function

I am getting an error when the function below posts the form (from the second time, the first time it is blocked). When I click the submit button after this, the form submits without problem. The ...
1
vote
1answer
822 views

How to check username availability with ajax at registration

I'm using buddypress which uses its own template form register.php for registration at http://mysite.com/register. I'm looking for a way to show the user whether or not their entered username is ...
0
votes
2answers
191 views

Load comments per post on click with AJAX

I'm working on a theme that uses a slider to display blog posts. Beneath the slider is a pagination that displays like a timeline, with a date instead of a page number, calling the corresponding blog ...
-1
votes
1answer
314 views

How to combine jQuery in-place editor with $wpdb->update

i am trying to use jQuery in-place editor (http://code.google.com/p/jquery-in-place-editor/) on WordPress to update certain values of a custom made table in my database. I am not really skilled with ...

1 2 3 4 5 11