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
1answer
34 views

Apply filters when loading post via ajax

Have been trying to solve this for couple of hours already. Here's the case: I'm making a plugin that separates the posts into pages using the <!--nextpage--> tag. It works fine but I want to ...
2
votes
0answers
32 views

How to load paginated post pages via 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 ...
0
votes
0answers
19 views

Multi-step Frontend Filtering to Reveal Content

I'm not even really sure the best and easiest way to go about doing this - or what the right verbiage is to properly describe what I'm wanting to do. On my site I'm looking to change this selection ...
0
votes
1answer
20 views

Help to upload post attachments from Ajax

My problem is that I cannot upload post attachments from a frontend form. I send data through AJAX to my php files containing functions. Let me be clear: everything is working great, the post is ...
4
votes
1answer
141 views

Retrieve POST data from AJAX call

I have the following JS script : jQuery('#form-recherche').submit(ajaxSubmit); function ajaxSubmit(){ var newFormRecherche = jQuery(this).serialize(); jQuery.ajax({ ...
1
vote
3answers
72 views

AJAX call returns 0

In spite of many similar posts, all the proposed solutions didn't work for me, so here we are. I have the following script : jQuery('#term').keyup(ajaxChange); function ajaxChange(){ ...
-4
votes
1answer
51 views

Widget won't work due to old JavaScript? Any ideas how to make it work? [closed]

I was trying to add this widget to my blog <!--BEGIN PROFILE WIDGET--> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript">&...
0
votes
0answers
47 views

Not getting any response from AJAX when formdata is used

I am new to the forum. I am facing a problem submitting file uploads through ajax. After doing some research, I found that using formdata is an option.However, I am not getting any response from ...
0
votes
0answers
14 views

Rating from a mobile app

I am looking for a way to allow my users to submit post ratings from my native mobile app. I have found this plugin : https://github.com/lesterchan/wp-postratings The calls are made by ajax to : ...
1
vote
1answer
43 views

WordPress Ajax Not Working ( Custom Admin page)

I tried to do a small thing using Ajax. I just try to replace a div. This is what I have done so far. I created a admin menu using add_menu_page. Then I add a form to that page with a text field. ...
0
votes
0answers
26 views

How can I set cookies on both secure and non-secure origins at the same time?

I have a front-end login process via admin-ajax.php. It's a standard user/pass form so I submit the POST request to a secure, https, endpoint regardless of whether the user is currently on a secure ...
1
vote
0answers
16 views

Nonce fails on ajax save

I have made options page with 2 forms and two separate nonce fields, and other input fields that I save with AJAX. The issue is that every time I save and call my function to save options via AJAX I ...
0
votes
1answer
49 views

Setting value of session with Ajax not working

I´m kind of new to using Ajax but I am trying to update the value of a session using Ajax. The Ajax call shoud fires when clicked on a button. When I click on this button it also returns the succes ...
0
votes
0answers
43 views

Frontend Post with JQuery AJAX to Php Issue

My problem is the following. I'm trying to make users publish custom post_type by frontend through a form like this: <form id="msform" enctype="multipart/form-data"> <fieldset id="...
0
votes
0answers
50 views

Reload specific divs after login

My problem is the following. I've a form which I want my guests users to fill out before completingit. So before the last step I place a sliding down jquery/ajax form for login/register to show the "...
2
votes
0answers
35 views

How to implement secure frontend image upload? [closed]

I would like to implement an public image upload in my Wordpress Theme with ajax. What's the secure way to do this? I have read many about security problems when allow users to upload files to the ...
0
votes
1answer
48 views

Load next post by ID on a single page

I hope this topic is not duplicated. I see some similar topics but non of them can solve my problem, so I decided to put a new one. Here's the case. I have a single.php post with the defualt ...
0
votes
1answer
111 views

Wordpress File handle - fopen, fwrite not working with $.ajax or $.post Jquery

I am making some log for all the action done in the site that can be store in a .txt file. my php code in working fine when doing a normal load, but when i use ajax it seems like i doesn't read the ...
0
votes
1answer
21 views

Interim-Login form on frontend

I have a few pages on the frontend of my site in which my users author content. This content can take many hours to create. Unfortunately, my site has a 4-hour session limit, and by the time my users ...
0
votes
0answers
24 views

register_nav_menu & add_action & in AJAX callback

Is it possible to call add_action or register_nav_menu in AJAX callback? I.e. add_action('wp_ajax_some_ajax_action','ajax_callback'); function ajax_callback(){ register_nav_menu('some-location','...
0
votes
0answers
74 views

Dynamic Multiple Taxonomy & Ajax Filtering

I am dynamically generating some taxonomies and then using the terms to create checkboxes on the frontend. I would like to filter posts depending on what is checked. If multiple checkboxes are ...
0
votes
1answer
87 views

Using AJAX in FrontEnd with Wordpress Plugin Boilerplate (wppb.io)

I'm trying to do a tag box similar to that of the backend, but for the frontend. I'm using AJAX to get tag suggestions as the user types in the input field. I've used AJAX in Wordpress in the past ...
1
vote
1answer
113 views

AJAX success response is not working but it's saving my changes

I'm a beginner in jQuery-Ajax so please bear with me. My Ajax response does not seem to load but my changes are being saved. but gives me this error on admin-ajax.php "call_user_func() expects ...
0
votes
0answers
24 views

List author comments with Ajax

I have an author.php template to show author's posts, comments and contact details. I use this function for to show author's comments: function profile_comments() { $curauth = (get_query_var('...
0
votes
0answers
54 views

load custom posts on select option,( wp_query doesn't work for more than 1 object)

I'm trying to load custom posts defined on select form. I registered post type called 'brands', and taxonomy called 'brands_category'. I created a function in functions.php //search for brands ...
1
vote
0answers
140 views

woocommerce in check out page how change the tax rate with ajax an php [closed]

Hi can anyone please tell if possible change the tax rate in woocommerce plugin in chekcout page i want to change the rate tax 0% or 19% when user select option if personal(19 %) if company (0 %) ...
0
votes
2answers
74 views

Fetching $_POST from Page Template into functions.php

I'm having an issue with the order WordPress is loading page templates and functions.php. I have front-page.php which has $_POST['sort-by'] allowing users to sort posts using a drop-down menu. It's ...
0
votes
1answer
28 views

How to get setting from separate file?

I writing a wordpress plugin, that connects to external database and fetch data. Also it create custom button for vitual editor. By clicking this button modal window has been opened, and after that I ...
0
votes
0answers
44 views

Native Wordpress Video Shortcode Not Working After Post is Loaded via Ajax

I'm loading post content into a modal via ajax. Some of the post have video that is added via the wordpress native video shortcode. The video shows up in the post, but none of the mediaElement.js mark-...
1
vote
0answers
50 views

Multisite Ajax serialize return error [object Object]

Working on custom WP theme, i'd like to add some "add_testimony" linked to custom post. Form is real simple, here it is : <!-- Add testimonial --> <div class="col-md-12"> <...
1
vote
0answers
30 views

how to build this site on wordpress currently on ruby on rails? [closed]

I need a similar site functionality in WordPress/PHP. But this site is on Ruby on Rails. It's about females posting their success story(like tweet) by login from facebook http://www.ladybrag.com/ ...
3
votes
1answer
78 views

Cannot access elements of json object

This is more of a json question but since it is within wordpress and is being processed by admin-ajax.php I thought it suits this forum best. I have created a standard ajax form procedure as shown ...
0
votes
0answers
17 views

Why Do I Still Getting Duplicate Rows in SQL?

I'm creating a Custom Freight System which stores the order and the products requested by the user into the WordPress Database. The Problem When I insert the product into the wp_my_custom_products ...
1
vote
0answers
32 views

ModSecurity && Admin Ajax: Server locking up

My server is throwing this error: ModSecurity: Error reading request body: Software caused connection abort [uri "/wp/wp-admin/admin-ajax.php"] Followed by this error until the server gets rebooted....
1
vote
1answer
50 views

Genesis + Ajax + Jquery | Failling to call action

I want to execute an action, without realoading my page. I folllow this tuto https://codex.wordpress.org/AJAX_in_Plugins But each time my page reloads, and I can't have the result value. Here is my ...
1
vote
1answer
177 views

Refused to execute script from '***' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled

I am facing some UI issues with my wordpress website. The newly added "Author" role is not able to see the formatting toolbar while writing the post. After debugging, I found a javascript error which ...
0
votes
0answers
47 views

ajax load more for comments

i want load more function on comments section like this plugins http://comments.connekthq.com/example-post/. Example. 1st time 4 comments will show then load more button. after press load more again ...
0
votes
1answer
70 views

Why I'm Not Having Access to “$_POST” Data Outside My AJAX Callback?

I'm trying to pass some data from the Back-end to JavaScript. The thing is, when I try to console.log() the variable passed through the wp_localize_script() it shows me on Console the structure that I'...
0
votes
1answer
74 views

Custom AJAX form not working async

I have a contact from that uses PHP mailer that I have integrated into my Wordpress blog. The script sends emails no problem - the issue is that it does not work async so once the form is submitted I ...
0
votes
1answer
109 views

Ajax call with javascript in post content (not enqueued)

I would like to make an Ajax call within a JS which I do not wish to enqueue for the whole website. To do that, I put the script directly at the end of the post for which it is relevant rather than ...
0
votes
1answer
73 views

Ajax form submit within a Post Metabox

I have a custom wordpress MetaBox assigned to post. I have the function running on the post save_action. However I was wonder if I can get a button inside of the metabox the will run the function on ...
0
votes
1answer
24 views

About a programming language starts with <# #> [closed]

Is that a Javascript code?? The following code inside a php class file but after closing php tag start these lines and the [data] variable not defined in this class i want to trace the [data] ...
1
vote
2answers
56 views

Creating a Multi-Level Associative Object Using AJAX

I'd like to create a Multi-Level Associative Object on $.post method using WordPress, in order to make my code cleaner. The problem is, I don't know how to get those values to manipulate on the back-...
0
votes
3answers
85 views

Use ajax without a plugin?

What I'm trying to do: Make an ajax-powered search button that gets the text from an input and give a list of post id's that match that search. Note: I must probably sound very stupid to 90% of you, ...
0
votes
1answer
81 views

Best practice for plugin: always detect admin-ajax call?

Recently I was debugging/hacking a plugin authored by someone else. I put a breakpoint at a spot I was interested in - a relatively complex admin page. I noticed that even during admin-ajax calls ...
0
votes
3answers
38 views

Need help with Access-Control-Allow-Origin

I have a little problem, I created a wordpress theme with documentation created with the site helpscout, to reduce the number of support ticket, I would like to do the same thing EDD: https://...
0
votes
1answer
53 views

How to get CPT category checkbox list and show post of selected(multiply) checkboxes via ajax?

I want to create a plugin that outputs Custom Post Type category checkbox list(as in back-end WordPress) to show CPT posts that contain selected on front-end categories(multiply select) after pressing ...
0
votes
1answer
32 views

Why Does WordPress not output admin-ajax.php path by default?

It's not uncommon for WordPress sites to have 10+ instances of the admin-ajax.php path outputted to the front-end for use by plugins and themes. Does anyone know if there is a reason WordPress core ...
0
votes
0answers
21 views

media image not showing after adding ajax google api

I have added a script in my header.php and ajax file <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> <script>....</script> But due ...
0
votes
1answer
32 views

wordpress ajax return 0

I'm tryng to set up a panel, this one The menu on the top calls different ajax functions in order to display a thumb. Clicking on the thumb you can see the details in the last box of the panel. I ...