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

1
vote
0answers
55 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
32 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
84 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
43 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
56 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
347 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
66 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
77 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
87 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
144 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
135 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
58 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
125 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
88 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
50 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
69 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
33 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
35 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 ...
0
votes
0answers
17 views

How to select many posts from tinyMCE PluginManager

I am trying to create a plugin that allows authors to include (inline) recommended posts. I've created a tinyMCE button and I get the form where the user is supposed to select posts to include (max 5)....
0
votes
0answers
10 views

Using AJAX tab causing error in customizer preview

My homepage is using jQuery-ui's AJAX tab feature, but apparently this feature made a mess at the customizer's preview page. The following pic is basically what's showing at my customizer page right ...
1
vote
1answer
52 views

Why a strange discrepency between get_current_user_id() when using AJAX versus output of document.cookie?

I'm developing a simple Ajax function as part of a plugin intended to be used from within the traditional WP Admin dashboard but am encountering a discrepancy regarding the login cookie state. The ...
0
votes
1answer
168 views

Auto load subcategories content with ajax

Recently I posted a question here regarding deploying subcategories contents with AJAX. Thanks to ccprog, it works beautiful fine. However, another question occur after I shared it with my client. ...
0
votes
1answer
75 views

Send email via ajax

I have send email funciton on my home.php wordpress file and function is below $("#sendmailbtn").click(function(e) { var dataString = $(".pricing").html(); e.preventDefault(); var ...
0
votes
1answer
59 views

Ajax Function call is always returning 0 in front end(without plugin) [closed]

I am calling a function through ajax but always getting 0 in return. <?php get_header(); global $wpdb; $qry="select * from wp-terms where term_id IN(SELECT term_id as term_id FROM ...
0
votes
0answers
22 views

Ajax filter already filtered custom post list

Clearly relatively new to WP so this might be a dumb question but here it goes. I was able to fetch a custom post list of filtered posts in a specific price range (max.value of $100). Now I want to ...
1
vote
1answer
98 views

Best place to load wp_ajax_the_ajax_hook action in plugin

I am building a shortcode plugin and I want to avoid loading unecessary code unless the shorcode is called in a page. I am having trouble with the ajax functions. It seems I need to load everything ...
0
votes
0answers
49 views

loading wordpress post with ajax in div

I want to display a post with ajax in some kind of modal box which i created. On click on link, the modal is shown (display:block) and the content is loaded. Also a overlay is added. That works great. ...
1
vote
1answer
136 views

Why get_posts() not returning only selected category posts from Custom Post Type?

I use widget plugin Getting the random post & URL via ajax. Thanks fischi for help to rewrite functions. Problem is that function returns all posts from CPT, so category select doesn't work. ...
0
votes
0answers
27 views

Integrating with external cache solution? Causing problems with ajax nonce validation

We are using an external caching solution (Akamai), and it is causing problems with plugins that use ajax nonce validation, such as Mailchimp for Wordpress. I saw the WP_CACHE define, but it sounds ...
0
votes
1answer
141 views

How to get post category list as select in front-end?

I use widget plugin Getting the random post & URL via ajax. I want to add function, that allows users on frontend choose category, and than display random posts from this category. function ...
0
votes
1answer
96 views

Deploy Subcategories with Ajax not working

I am currently working on a project which I am trying to call out the subcategories contents using Ajax. The Subcategories name will be listed as a menu, to call out their individual contents. I ...
0
votes
1answer
44 views

Wordpress subfolder installation AJAX Problem

I installed a Wordpress distribution in a subfolder. Everything works fine: The rewrite rules a correct and so on. only my own private plug-in doesn't. I call per ajax the plug-in function via the ...
1
vote
1answer
61 views

Storing posts from query and accessing later via AJAX call

To clarify the above question title, what I am trying to do is create a grid of posts, for which I am displaying a thumbnail of an image that is attached to that post. Then, upon clicking each of ...
0
votes
0answers
34 views

WordPress form redirect after add_rewrite_rule

Two problems i got: automatically redirect from OLD url's to new one (eg. search form will redirect to old url and i need redirect to new one) - what the best method (htaccess, wp_redirect? now i ...
1
vote
0answers
47 views

WP REST API route request explain

Maybe can someone explain or show additional info about "WP REST API route request" from beginning to the end. Main questions, how handle this request in most earlier stage. For example for ajax ...
1
vote
0answers
66 views

jQuery.post not working within shortcode - Wordpress Ajax

I have a shortcode which works, only thing not working is my ajax callback function, which is not triggered and can't figure out what the error is. My functions.php for the shortcode and callback ...
1
vote
0answers
17 views

Use just a shortcode from another page

I am building a bbpress forum and I have it set up right so that when you click a forum it displays a loading image and loads the link with ajax instead of redirecting the page However, this loads ...
2
votes
1answer
66 views

How can I reuse the Wordpress search form for a custom plugin / widget?

I need to develop a custom widget to display posts, based on their ID. The user must be able to handpick posts. Right now, they can enter the post ID, but it is not convenient for them. Is it ...
1
vote
0answers
111 views

Passing jQuery value using Ajax to a page template

I have the following jQuery code:- jQuery('.fancymember').on('click', function() { var member = jQuery(this).parent('div').parent('div').find('.test').val(); var dataString = 'member='+ ...
1
vote
0answers
46 views

Dynamic Custom Fields

I am working on a custom invoicing system for a client. I am looking for the best way to implement adding products dynamically to the invoice in the wordpress admin. There are hundreds of products ...
1
vote
0answers
23 views

What is the best way to do MyAjax error and success handling?

I'm doing an API call and if the response code is 200, I'm simply sending the name of the course as the output. If it's not 200, it will give the user a variety of errors based off the if checks. I ...
1
vote
0answers
132 views

WP set auth cookie using Ajax is not saved to browser

We are creating an external dashboard that uses Wordpress data, obviously, we use WP REST API v2 We want total separation from the traditional WP Dashboard, but we also want to log in user "behind ...
1
vote
0answers
81 views

Random ajax load only works with posts_per_page set to -1

I created a post loader shortcode, that uses AJAX to load posts. Even though I can set the order and order_by query parameters, the order_by should be random. From what I've seen on the web, ajax load ...
1
vote
0answers
126 views

How to use jPList with search results

I've been working on a real estate site and looking for a way to refine search results page + update pagination, instantly, like the big name sites (ie hotpads.com, trulia.com, hotels.com, etc.). ...
1
vote
1answer
114 views

WordPress Ajax problem with undefined url

I have problem with wordpress plugin - in jQuery.ajax part, the ajax_object (url: ajax_object.ajax_url) is undefined and I don't know why. I cant recieve correct code from my php plugin, but if I ...
0
votes
1answer
24 views

Enqueue script in header

I'm having issues enqueueing a script in the header. I'm working on a Wordpress site where the page content is loaded via AJAX. To do this I have to enqueue the script with the AJAX call. I do this ...
0
votes
0answers
130 views

Create tabs in admin options page from custom post type loop

For a WordPress crm/password management plugin I am working on, I have created a custom post type called 'client'. I also have made a separate menu page for storing and showing the passwords of these ...