Skip to main content

Questions tagged [ajax]

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-save functionality on post and page editing screens. Several themes and plugins also use Ajax; for instance, some post rating plugins.

3 votes
3 answers
2k views

Retrieving JSON data in ajax request from media uploader

I'm having some problems getting my JSON data that's being passed via an ajax request. I'm trying to implement the media uploader into a plugins settings page. I've got it functioning properly using ...
0 votes
1 answer
1k views

How to add Ajax to this Pagination i made?

This is my functions file add_action( 'wp_ajax_homekong_pagination', 'homekong_pagination' ); add_action( 'wp_ajax_nopriv_homekong_pagination', 'homekong_pagination' ); function homekong_pagination($...
0 votes
1 answer
1k views

Find the method which AJAX GET calls

I need to find bug in a Wordpress site. But I can't find the method (function) that the AJAX GET call runs on backend. That's not admin part of website, but front end part of website. important I ...
1 vote
2 answers
1k views

Ajax gives 400 error

Basically I am trying to fire an ajax call in an Elementor widget. So I have a button on the click it executes a function in the widget class. To elementor basic template I have added this. ...
5 votes
1 answer
13k views

How can I automatically login using a URL?

I want to automatically login to WordPress by parsing the username and password fields as parameters into the login URL. For example, I want to create a link as follows: www.mysite.com/wp-admin?...
0 votes
1 answer
1k views

How to send the checkbox value to email

HTML of form is given below <?php for($i=$start;$i < $end ;++$i) { if($emails[$i]!=""){ $userId=$emails[$i]['...
0 votes
1 answer
1k views

User Following System

I have a custom plugin which allows users to follow each other. The follow and unfollow functionality works by ajax which is fine but there are just a few bugs that need sorting out which I am unsure ...
3 votes
1 answer
1k views

How to disable drag-and-drop upload function in Media Library?

Does any one knows a valid/standard way to disable drag and upload when accessing the media library in the admin area? In order to make this sense to you, I'm building a multisite and user of sub-site ...
0 votes
1 answer
3k views

Why does admin-ajax load slow and what are ways to speed it up?

I am developping a theme for wordpress which uses woocommerce. Currently I have developed a new page where I show the products. Initially I did the page and the filters for categories without using ...
0 votes
2 answers
2k views

wordpress ajax upload media not working

I move my wordpress website to another server that is centos7 and apache web server and everything is ok but ajax upload in media not work. it is ok when i did not use ajax but it has problem with ...
5 votes
1 answer
4k views

I want to load post content by categories using Ajax

I have question. I would like to load post content, custom post, depends on category. So first of all I would like to have drop down menu which will list all my categories then once user will select ...
0 votes
2 answers
981 views

JS global variable doesn't update

How can i update global variable URL? I am trying for the last 3 days, still no luck var output = ''; var pageNum = ''; url = ''; function post_ajax_get(pagination) { $("#loading-animation")....
0 votes
1 answer
887 views

jquery & ajax getting data from php in wordpress . admin-ajax.php returns 400

I am working on an arbor.js graph. What I want is to send member id query it from php return member tree json to again to jquery script. then print the tree. here is HTML form <form action="&...
0 votes
1 answer
1k views

wordpress ajax pagination

I'm working on a WordPress Theme (create a custom theme) and using AJAX as pagination for my Custom Posts. So I'm going to load pages with AJAX but the problem is when I click for next page, instead ...
0 votes
1 answer
815 views

WordPress custom post type post item data - show/fetch only on click with Javascript dynamically?

I have a question. Hopefully, I will be able to explain what I am trying to do here. I have created a custom post type "Feeds" and published 10 post types inside that CP. Now, usually, I would just ...

15 30 50 per page
1
3 4
5
6 7
180