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
0answers
34 views

Speeding up admin-ajax.php

I'm currently playing around with AJAX forms, but I've noticed that admin-ajax.php is quite slow. If I simply return the word 'test', it takes around 1400ms. I'm assuming it's because it's loading ...
0
votes
0answers
26 views

Wordpress AJAX load a specific category posts

After a long try i have failed to call AJAX to load data on click event. What i am trying to do is i have three button ALL + Website + branding website and ...
-1
votes
0answers
14 views

Update/Modify DropDown Woocommerce Custom checkout field values based on Selection [on hold]

I am trying to update/modify the delivery time slot (drp_time) of (Select/Dropdown type) field when an user selects the date. I need to display the available time slots to the user based on the date ...
1
vote
0answers
18 views

wp_mail ajax form - nonce not working [on hold]

I have a working form in Wordpress using ajax to pass the info to php and wp_mail to send the email. My final problem is getting the nonce to work. The js $atj(function(){ ...
0
votes
0answers
25 views

How to avoid Ajax in wordpress theme in making mulitple request?

here is my function that make request, When ever page loads this scripts makes multiple request in front end making web site load very slow. function enqueue_scripts_styles_init() { ...
0
votes
1answer
40 views

Wordpress ajax success response

I'm trying to create a contact form in Wordpress using wp_mail and ajax The emial works but I'm having problems with the ajax success reponse. After the email is sent I need to show the user a ...
0
votes
1answer
17 views

AJAX values converted to PHP Variables?

I just started playing with Wordpress and I have a question about the AJAX side of things. I think that I understand how the AJAX front-end to server side processing, back to font-end works. But, I ...
1
vote
0answers
18 views

wp_mail 200 response but no mail sent

I'm trying to send email from WP using ajax to validate the form and wp_mail to send the mail. The form is a basic form with id names on the fields The js validtion looks like this ...
0
votes
0answers
13 views

How to handle sorting and ajax pagination on 300+ items

I have 300+ posts in my db. They are tagged and categorized. When a user nav's to the News page, they see a list of the most recent 10 items (pretty standard stuff). I present a sort bar that sorts ...
2
votes
0answers
62 views

Saving data-URI to media library

I have a TinyMCE plugin that generates PNG images using HTMLCanvasElement.toDataURL() (MDN). Currently, I'm just displaying them on the backend by putting the data-URI in an image tag, but I'd really ...
0
votes
1answer
35 views

Category Ajax call

I am following this post to get an ajax post filter via category to work 'Using ajax on categories and wordpress loops'. I think I have added everything in correctly as follows in my template I have: ...
0
votes
1answer
20 views

Empty POST data on server on AJAX request using Angular $http

I use AngularJS to build an AJAX form which is then processed on a server running Wordpress. Server-side handler is simple: function rnr_contact_callback() { $name = $_POST['firstName'] . ' ' . ...
0
votes
1answer
17 views

Modify php code to pass a page id as a parameter in order to create a breadcrumb

I use a function to create the breadcrumb in my pages and it works: function the_breadcrumb() { $currentBefore = '<li><a>'; $currentAfter = '</a></li>'; if ( ...
0
votes
1answer
17 views

ajax wp_query conditional tags not working

I'm trying to ajax wp_query, I got success getting posts for home page with the following code. Then I added conditional tags to modify the query for the other pages like Category page the problem ...
0
votes
0answers
15 views

Ajax form submission [duplicate]

Been trying to do this for 2 days now, getting nowhere. I'm following the page here - http://solislab.com/blog/5-tips-for-using-ajax-in-wordpress/#admin-ajax So I have a simple form <form ...
0
votes
2answers
41 views

Contact form - ajax, wp_mail

I'm trying to create a simple contact form using jQuery to validate the form and AJAX to pass it to PHP and WP wp_mail() to send it. I have a simple form like this. <form role="form"> ...
0
votes
0answers
12 views

Inline Ajax call after term is appended with a @ or # etc. displayed in div

Basically what I would like to know is how to do the following: I have TinyMCE Advanced enabled. I would like for my users to be able to tag content with different special characters (each refer to a ...
0
votes
1answer
19 views

List of pages - AJAX load more

I apologise if this is an extraordinarily broad question, but I am getting a little lost. I am using the below to show child pages (note: I am using Advanced Custom Fields) <?php /** * ...
0
votes
0answers
56 views

admin-ajax.php not working after wordpress 4 update

n WordPress 3.9.2 access to admin-ajax was working for non loggedin users. When I upgraded the script stop working. I have the following code in functions.php function theme_name_scripts() { ...
0
votes
1answer
27 views

plugin ajax to external php file always return null

I am struggling with this error for a while now. The plugin inserts data to the table. Here's the code : File : plugin/_add.php require_once('../../../wp-load.php'); global $wpdb; $table_name = ...
0
votes
1answer
36 views

How to include my Ajax calls in one function instead of calling different ones every time?

I'm doing something like this to refresh a widget: add_action( 'admin_footer', 'my_action_javascript' ); // Write our JS below here function my_action_javascript() { ?> <script ...
0
votes
1answer
44 views

admin ajax is not working for non logged in users

I know that this issue has been discussed many times, but I think I tried most of the advises. This is my code: $.post('<?php echo admin_url( 'admin-ajax.php' ) ?>', {'action': ...
0
votes
1answer
29 views

AJAX – SHORTINIT set to TRUE returns blank

Thought I'd take this nifty shortinit trick for a spin. However, when I include this in my custom ajax handler, I get no response from my callback. If I comment it, it works just fine. Anything ...
-1
votes
0answers
17 views

Post page is interpreted as image?

I'm doing an ajax request(POST) and after the request is done I can see in the console this : Resource interpreted as Image but transferred with MIME type text/html: ...
0
votes
1answer
61 views

Add Infinite Scroll to Ajax Loaded Category Query

Update: This has been resolved. See update below. Following a few different online tutorials, I've managed to create a function to modify my post display via Ajax based on a category selected from a ...
0
votes
1answer
21 views

how to use wp_editor() here am getting empty result

<p> Messenger: <br /><?php wp_editor( '', 'mailling_messenger1', $settings = array('mailling_messenger1' => post_content) ); ?> <p> here am using wp_editor to get mail ...
1
vote
1answer
89 views

Ajax call in wordpress not working for subscriber user in front site

i have simple wordpress form to add data in custom table in wordpress using Ajax my Ajax code jQuery.ajax(ajax_object.ajax_url, { type: "POST", data: data, cache: false, ...
0
votes
0answers
12 views

Where should i put my php script for ajax implementation in wordpress? [duplicate]

I want to implement ajax on a page . i create a folder under plugins and put php page there and it works(when i gave the correct path in jquery). But when i try to call any WordPress functions it ...
0
votes
1answer
151 views

Display data on same page as form without refresh

I am not sure if there is something about wordpress, or what I am doing, but I can not get online tutorials to work when implementing in a page template. For example this ...
0
votes
1answer
20 views

Data from ajax not updating post meta

I can not update the meta from this ajax. Can someone give me a direction to help me to resolve it. I have a select field. I need to grab his value, make some work with that value and then, add it to ...
0
votes
0answers
30 views

Unable to process ajax call for login form plugin

I am very new to PHP and WordPress plugin development in general. I am trying to create a plugin that shows a modal popup form for login and registration. When I try to submit the form that is ...
0
votes
0answers
25 views

Send post id through ajax and get the post content back

First of all i want to say that I am a WordPress beginner :). I am trying to get a post content in a modal by using ajax. So i send the id through ajax, but i cannot execute the php code anywhere on ...
0
votes
0answers
19 views

My Ajax Query is returning the contents of the page itself

I am attempting to execute the submission of a form in AJAX. function rapid_form_callback() { global $wpdb; $table_name = $wpdb->prefix . "my_client_here"; require_once( ...
1
vote
0answers
61 views

CPU usage: AJAX and Heartbeat API on admin pages

My (shared) web host recently sent me this: "Our server monitoring systems keep indicating high server load persistently maintained by your website (...). Most of the hits are to the ...
0
votes
1answer
134 views

AJAX fileupload - TypeError: not a function ajaxSubmit()

I have a plugin that works as a standard POST but not as an AJAX POST request. I am getting a not a function error in Firebug with this function: TypeError: jQuery(...).ajaxSubmit is not a function ...
0
votes
3answers
25 views

wp_ajax action responds with 0

I'm writing a plugin. There is a button, that triggers an ajax-request to an action I added in my plugin page: Head of my plugin PHP file: add_action('wp_ajax_update_nav_items', 'update_nav_items' ...
0
votes
2answers
33 views

Check ajax triggered from front-end or from dashboard

I have ajax method, user can trigger the same from either dashboard or from front-end. I just want to get from where the ajax is triggered. Is there any way to find? I tried is_admin method but it ...
0
votes
0answers
14 views

When I update a post and at the same time trigger an ajax request, post request is cancelled

When I update a post and at the same time trigger an ajax request, post request is cancelled. I have a video that proof this behavior.http://screencast.com/t/w2YwDGmWCg
0
votes
0answers
44 views

How to load post_meta for custom post type via Ajax

I'm trying to load a YouTube video via ajax outside the loop. I have it working on regular pages, but not anything loaded via ajax. A user would click a button, then a YouTube video will load via ...
0
votes
0answers
43 views

PHP switch and AJAX display WordPress post

I have a world map on a WordPress page. I'd like to load a particular post onto the page depending on what region of the map is clicked. I'm writing this as a plugin for my site. Here is what I have ...
0
votes
1answer
27 views

Manually cache a special, non-WP-but-using-WP page (e.g. Ajax results) with W3TC

Under the active theme folder, I have a search-autocomplete.php file which uses various WP queries to create smart JSON results delivered via AJAX to a jQuery UI Autocomplete input field. It's not a ...
0
votes
1answer
38 views

change attachment custom field onChange event

The form is in post creating window. Ajax is posting values, but the values doenst renews. Where can be problem ? Ajax <script> function dynamic_Select(field, aid, value) { ...
0
votes
1answer
32 views

WP_Ajax Hook doesn't execute this PHP code

add_action('wp_ajax_nopriv_updating_heat_value','updating_heat_value'); add_action('wp_ajax_updating_heat_value','updating_heat_value'); ...
0
votes
0answers
72 views

Front-end ajax login form broken after WP4.0 upgrade

A site I manage has a a simple form a user can click on to login using ajax. It worked great until I upgraded to wordpress 4.0 Here is the relevant code: Function.php: function ...
0
votes
1answer
34 views

Calling a class method instantiated by ajax call in wordpress [closed]

I have an ajax call in Wordpress that instantiate a class. I want to be able to call the class methods in other functions. Here is the code to demonstrate. Ajax call: ...
0
votes
2answers
66 views

Why AJAX response 0!

It is irritating me why AJAX response is 0 !. I want to check whether the email address is valid or invalid on blur.Please suggest me here is my code This is my php code ...
0
votes
0answers
22 views

Drop-down list of article tags

How would I get a list of all the tags on a post-type archive page and display the tags not in a tag cloud but in a multi-select drop-down list. When the user selects tags, then filter which posts ...
0
votes
1answer
66 views

Using WP_Query to grab custom meta values, foreach to json object

So I have 4 custom meta boxes for each post on a wordpress site relating to the product this client sells. I have 3 dropdown boxes, one for category, and two for two of the custom meta boxes. The ...
0
votes
1answer
144 views

admin ajax php success returns 0

I have looked over many posts on here and other websites and nothing I do seems to work. What I am doing is, I have a custom template file and inside that file I have a div that I want to populate ...
2
votes
0answers
48 views

Is it possible to hook AJAX to UPDATE-button?

I have a site with a custom post. When I enter that custom post in admin (edit)-page then a form is rendered. This form takes like about 2-3s to render - it's a lot of of values in it - both hidden ...