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 auto-...

learn more… | top users | synonyms

0
votes
0answers
12 views

custom taxonomy not working in wp-job-manager

I'm working with the wp-job-manager plugin, and i need to add some custom fields in my search filter. I'm using another plugin for adding custom date fields, and it works perfectly. So i started using ...
-4
votes
0answers
21 views

Shipping Calculator to recalculate totals via AJAX on selection of payment Gateway

I have designed a plugin for my website which calculates shipping costs dynamically from an external API based on the Pin code, weight & whether Cash on delivery is required or not. The entire ...
0
votes
0answers
15 views

WooCommerce Ajax add to cart not working on Multisite [on hold]

I've configured multisite with example.com and example.com/in When am adding a product to the cart of example.com/in, it will be added to the first blog example.com and not in example.com/in. It ...
1
vote
2answers
40 views

Returning a value from a PHP page

I have created a WordPress page that has this simple PHP code: <?php $result = array( 'State' => 'Done', 'ID' => 1 ); wp_send_json( $result ); ?> When ...
1
vote
0answers
27 views

Loading <!--nextpage--> post with Ajax

Here's the case I got: I've setup post pagination for my website and everything works well. Except one thing - on every new page request all the resources are loaded again. This makes the website ...
1
vote
1answer
8 views

Update attachment metadata fails

Updating attachment title and description metadata with wp_ajax breaks all previous datas and structure of attachment, my php code: add_action( 'wp_ajax_update_attachment', '...
1
vote
1answer
23 views

ajax nonce verification failing

I have a voting system where a list of posts are printed out using an archive template. Each post's voting button has html data attributes containing the vote-id and the vote-nonce. When the voting ...
0
votes
1answer
24 views

Redirect wp_dropdown_pages() to an AJax request?

I want to get the result of wp_dropdown_pages() to fire an ajax request to show an image instead of redirecting the user to the page url. In other words, my pages are all for car models. I want to ...
-1
votes
0answers
20 views

Overriding product search in Woocommerce admin

I need to alter the query used for the AJAX product search when adding or editing an order in Woocommerce admin. I want to add variation terms to the query. Using browser dev tools, I see the call ...
0
votes
0answers
14 views

pure AJAX using POST method connection to page-{page name}.php failed

I know it's a bad habit but I just need to get things done quickly using AJAX. (Pure javascript). Therefore I implement all the codes on this page-{name}.php at the very beginning of the file. My ...
0
votes
0answers
18 views

AJAX call to Vimeo API from WP admin

What I am trying to do is query the Vimeo API to populate some ACF fields in a custom post type. I'm loading this in the admin head for WP Editor, which grabs the Vimeo URL from the ACF field, and ...
-1
votes
0answers
28 views

How do I get multiple Gravity Forms to post to the same database fields? [on hold]

I have multiple email sign-up forms on some of my pages (in the header, some in the body, another in the form of a sliding pop-up). From my understanding, I shouldn't be using the same form because it ...
0
votes
0answers
18 views

permalink with partial ajax site

I'm trying to load a page with from a URL with an ajax call. This is what i have : a home page with the url / -> list all movies & events a page called cinema with the url /cinema -> list all ...
0
votes
0answers
19 views

Ajax custom taxonomy and query_posts

I'm trying to add ajax load more function on my custom taxonomy template. I'm stuck, It works for me on category templates and stuff, but not on taxonomy template (archive). So, here's my loop ...
0
votes
0answers
24 views

Create custom term using ajax

I need to create terms from a custom taxonomy on the front using Ajax, I haven't found a way to achieve this. Is is possible? This is what I have so far, for the front: <table class="table ...
0
votes
0answers
40 views

Wordpress Ajax with error

On my site, through a form I send/register same information in database, do a SELECT/query and return it! Return the last table saved in database, just that user just entered on the form (along with ...
0
votes
1answer
44 views

Ajax not working to insert, query and result data

On my site, through a form I send/register same information in database, do a SELECT/query and return it! Return the last table saved in database, just that user just entered on the form (along with ...
0
votes
1answer
14 views

Automatic add space if user enters number(any digit)

I have one input field in that I need to check that if user enters any digit then it automatic add spaces i.e. When someone enter a phone number like 0499287909 then in string should change the ...
0
votes
0answers
13 views

Pass JS VAR back Through AJAX

I have a PHP array that contains the post IDs of categories collected using AJAX that I need to pass back to be used in jQuery; Array ( [0] => Array ( [id] => 15 ) [1] => Array ( [id] => ...
0
votes
1answer
28 views

Create Page With wp_insert_post() and AJAX

I've been trying to figure out how to create a post (or any custom post type) with wp_insert_post() and AJAX...so far to no avail. What I hope to achieve: Any user (not just logged in ones, I don'...
1
vote
1answer
35 views

Wordpress Integration with Google Groups

I'm having some trouble trying to make an area on my WordPress site, that must be accessible only to members of my Google Group. I tried to make it with some plugin, but most of them would take me to ...
2
votes
2answers
41 views

Page Reloads Before AJAX Request Finishes

I am working on a WP plugin, and I need to be able to call a URL (specifically an AJAX function) using a button click, but the page refreshes after clicking it, which I think is preventing the AJAX ...
0
votes
1answer
49 views

Convert canvas to image and upload image to server

I'm working on a wordpress site about blackout poetry for a university project, where the user can blacken parts of a text to create a poem. After the user has created his poem, we need to give him ...
0
votes
0answers
43 views

jquery Load All Wordpress Post and Pages Into Div Using AJAX

Ok So I am working on my first Wordpress them based off html5 template that I created myself. Right Now On the site I have a continous music player. It allows the users to listen to music while ...
0
votes
1answer
57 views

pop-up lighbox with AJAX

I need to create ajax script where user choose a post type and after choose post type post show on a light-box or any thing but without loading. I can't get an idea. Please give me a idea to improve ...
0
votes
0answers
19 views

How do I add a button to run some code on a page when the button is clicked

I have a this conditional code below and I'd like to know how to add a button that when clicked will 'run' the code indicated. I have no experience with ajax/jquery but I assume it is what is needed? ...
0
votes
2answers
35 views

jQuery.post() calling function with parameter

I have been searching around the web for this but it doesn't seems there's any topic like this (or maybe I am searching in the wrong direction). Currently I have a jQuery file which will retrieve 9 ...
0
votes
0answers
47 views

Ajax WordPress comment for latest version

Is there and latest and updated way to make a custom WordPress comment box to post comments thought ajax or without reloading the page. I am not understanding what is wrong.. the success is triggered ...
0
votes
0answers
35 views

wp_mail Not Working Correctly

I am trying to use wp_mail to send an email with an attachment, but there are a few issues: 1) The attachment does not appear 2) I have to use the direct URL to send the email (not working on button) ...
0
votes
0answers
12 views

How to get new posts via Ajax when using Waypoint.js

So I have an ajax call in one of my pages when you hit a certain waypoint within the dom. I then call a Wordpress function that I have created. The function is working in that it gets the first posts, ...
0
votes
1answer
62 views

How do I call wp_mail from HTML?

This is meant to be up in the next week or so, but I am having a lot of trouble getting the site to send emails to an address specified in an input box. I need to use wp_mail as I need to be able to ...
1
vote
1answer
43 views

Auto-realod with new posts // Ajax call

I'm trying to realize a sort of "live feed" so when the user is on my page IF I UPDATE my post on his side he should get a auto-reload of the page OR a ajax-insert-post in that page. In example: The ...
0
votes
0answers
20 views

Set custom image size for Media Settings via ajax in wp-admin

I want to the user upload image custom size, but I want to possibility to change size via ajax, without go to media settings, I have two types images sizes. 700px for posts 1500px for header When ...
0
votes
1answer
51 views

How do I send an ajax request and get a response back from a function?

I've built a function within a plugin. I'd like to call it with an jQuery ajax function. The function is defined as follows: add_action( 'wp_ajax_my_test_ajax', 'my_test_ajax' ); add_action( '...
1
vote
2answers
90 views

Trigger JS in custom meta box if a featured image is loaded/exists

Playing with WordPress customization I created a meta box with several others that report back details of the post. One meta box evaluates the featured image but I am having trouble figuring out how ...
1
vote
1answer
43 views

Shortcodes not working in an AJAX call

I am using AJAX to load next set of posts on homepage. The posts load fine but the shortcodes are not rendered. I am trying to use the do_shortcode function on the content the ajax call fetches (...
0
votes
0answers
32 views

Issue with AJAX passing values from jQuery to PHP

I made an AJAX form in WordPress by making a plugin. The script runs well: First I retrieve the value from the form, then I send it into post_meta table, and finally I put the value in the div I want ...
0
votes
0answers
42 views

Can't get to work with Ajax and Modal Bootstrap

I'm working on a website that shows a list of products, and when each product is clicked a Modal window should appear, with some product info. So I have 3 files: main, header-main and product-info. I ...
4
votes
0answers
43 views

Calling shortcode in wp_localize_script strips result

I am working on adding some functionality on a Wordpress plugin which after a certain click needs to call on some shortcode through ajax. What I first attempted was to call the shortcode inside of ...
0
votes
1answer
49 views

Problem with AJAX in wordpress plugin

I'm writing a plugin and trying to get some data from the database and post it using AJAX. After sending the AJAX request, PHP processes the data and is trying to give me some page data, but it doesn'...
0
votes
1answer
27 views

After ajax image is outside the `<a>` tag

I am loading some content via AJAX, and basically I have this line: $storage .= '<a href='.get_permalink($id).'><img src="'.$image['url'].'" /></a>'; Which gets rendered as: <...
0
votes
1answer
42 views

wp_update_post onclick button using ajax

I'm trying to update my specific page using button in custom page on admin menu. I've tried using ajax to execute function in updatepost.php but the content of page no change. can any one help me? ...
2
votes
1answer
21 views

How to create popup same as wordpress popup feature

I wants to include a popup window which is same like wordpress popup. Like if we click on the wordpress editor's link button it will open a popup window. I wants to create same like that.
1
vote
1answer
89 views

Load a page into a div with Ajax

I'm really a noob when it comes to Wordpress, right now I'm working on a theme that basically is all static, if you want to edit something you'll have to edit the .php file than rather doing it on the ...
1
vote
2answers
57 views

Shortcodes not resolved in AJAX call response

I have a simple function, which returns the content of a page with the given pageID: function get_page_content(){ $id = $_REQUEST['id']; $page_data = get_page($id); echo ...
0
votes
0answers
38 views

How do I get a dynamic shortcode to render correctly?

I have a page that loads album preview images from Flickr. I want the user to click on a link/thumbnail and refresh the contents of the page with the requested album. I want to use a plugin called ...
0
votes
0answers
25 views

Worpdress admin ajax always returns 0

I have a wordpress setup on two folder : main folder / preprod folder on site prod i have wordpress install for production, and on preprod another installation for dev, preprod folder is a ...
0
votes
0answers
13 views

Can't get post meta from custom post type metabox

I use Ajax Load More - Infinite Scroll plugin for output custom post type. I have custom meta box link_to with value /something - it's just link. In template of plugin i try to get it <a href=...
0
votes
2answers
24 views

Email Exists ERROR into Ajax registration form

My problem is that I can't verify if some user insert an existing email into AJAX registration form. However my form is working fine, it's registering users and it's giving all other errors, like "...
0
votes
3answers
42 views

Ajax Load more CPT via shortcode

I have a problem with ajax load more for my CustomPostType. I think i have mistake but don't know where. If it possible to edit my code, i will happy. UPDATE I have create div cool to paste in it ...