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
3answers
52 views

Dequeue script to prevent javascript event conflict on wordpress child theme

I've built a child theme of Divi Theme to use with Buddypress. So far so good, except for a script conflict on commenting buttons. The theme load a javascript (js/custom.js at 2642:2662) with the ...
0
votes
1answer
18 views

Handling AJAX with custom taxonomy custom fields on add

I wrote some extra fields for my custom taxonomy. I added the form fields to the add form. I got it to save by handling the appropriate values in $_POST. In 4.1.x, the add form is Ajax-ified. How can ...
0
votes
0answers
13 views

Theme customizer: filter a child <select> based on a parent <select>? [on hold]

if it posable to create some function that will allow us to filter a child based on a parent ? somthing like this: <select id="parent"> <option value="1">Group 1</option> ...
-1
votes
0answers
8 views

how to load gallery form post via ajax

I would like to create one picture gallery in WordPress and will like to have category and subcategory. For e.g. Galley Sub Gallery Sub Gallery Sub Gallery Sub Gallery Sub Gallery Sub Gallery I ...
-1
votes
0answers
34 views

AJAX POST 500 INTERNAL SERVER ERROR

I am new in WordPress coding and I make one infinity loop for my WordPress blog. Its working great on Local machine (WAMP) but after putting it online at nginx server its showing POST mysiteurl ...
0
votes
0answers
20 views

Send email in wordpress

I want a functionality to send email in wordpress but what I have tried below code but what I want is that an additional textbox forinstance called "name" is appended to my email ... can be append the ...
0
votes
0answers
23 views

Woocommerce Ajax Pagination [on hold]

I am creating plugin for ajax pagination in woocommerce product archive pages. When i click page number navigation, ajax works but some classes for product list are not added hence product list does ...
0
votes
1answer
22 views

Wordpress Insert not working with ajax

I am trying to enter insert data with form in wordpress and want to use ajax for that. Without ajax it works fine but when I use ajax pressing the submit button gives 0 in result and the data is not ...
0
votes
0answers
11 views

Rotate image media item 90° anti/clockwise ajax front end function?

Is there a rotate image function that I can create a button on the front end of my website, using ajax inconjuction with the id number of the media item? I'm thinking having 2 buttons, rotate left ...
0
votes
1answer
21 views

Add a counter for mouseovers (custom field)

I am trying to count mouseovers on the div for each post. The div is inside the loop. I am almost there, I think you might have to just help me correct some mistake. The div and jquery. Notice that I ...
-1
votes
0answers
13 views

Gravity Forms: Show selected product + options at bottom of page [on hold]

I've created an order form with Gravity Forms (Developer license). It's for a subscription box, and the user can choose a main product, a variation and either a monthly or 3-monthly subscription. ...
1
vote
1answer
24 views

wordpress count link clicks by ip address

I am building wordpress web site, which will have an option to download zip file from certain custom post type. By clicking on download button, user automatically starts with downloading zip file. ...
0
votes
0answers
20 views

Change php via js, is it possible?

i want to change my headers dynamically ( not in WP admin dashboard ) <div id="Header_wrapper"> <?php if( header_style == 'header-creative' ) get_template_part( 'includes/header', ...
0
votes
0answers
24 views

Ajax Form data is not posted back to the get_results()

I am trying to run a wordpress wpdb->get_results select query and I want to get the search criteria from a textbox. I want to do it form and with ajax without refreshing the page. No matter what I do ...
0
votes
1answer
24 views

Ajax Query returns zero

I am doing simple wordpress select query and want to do this with ajax jquery and do not want the page to refresh when I press search button and writing text in search textbox. As soon as I press ...
0
votes
1answer
27 views

Search query with Ajax

I'm running a $wpdb select query and getting it’s parameter from a textbox. Result shows as soon as I press the search button, but I want to do the same with Ajax without refreshing the page. I have ...
0
votes
1answer
26 views

WP AJAX API with JS file

So I am having a hard time trying to set my contact form working on a theme I am building. It uses JqBootstrapValidation plugin. Someone told me that the reason this is not working is because WP is ...
0
votes
0answers
58 views

500 (Internal Server Error) of external php file

I am currently using WP Web Scraper version 3.2. Once I insert the shortcode or template tag (php code) directly into my page, the plugin works perfectly fine and the values appear. I decided to place ...
0
votes
0answers
12 views

wp_set_auth_cookie() doesn't work in Ajax call

I am trying to create a Facebook JS-SDK based auto login feature. When user is "Connected" passing FbID and aother user data to an ajax function which creates the session cookie. Cookie is created (I ...
0
votes
2answers
68 views

WP_query is not returning the expected result

I have 2 dropdown lists, when a user select value in the first list, there is an ajax call to a function using WP_query which send results to populate the second dropdown. My WP_query is not ...
0
votes
0answers
13 views

WordPress manually load TinyMCE scripts

How can I manually load the scripts that TinyMCE requires to run on the front end of the site? I'm pulling wp_editor through AJAX, so I know I'll need to run actions in order to get the proper scripts ...
3
votes
2answers
100 views

Allowing admin-ajax.php to receive “application/json” instead of “x-www-form-urlencoded”

I'm using AngularJS's $http function to send my payload to WordPress's admin-ajax.php subsystem, but it seems the latter only accepts x-www-form-urlencoded data, instead of the application/json ...
0
votes
0answers
25 views

Unbind Form from Ajax Submit

I am working on a wordpress site that has the plugin contact7 installed. I have created my own form, and because of contact7, when I submit it, it is processed via ajax. How do I undo this so that it ...
1
vote
1answer
15 views

JSON - Permission Error?

I have two dropdowns to filter posts on a website. The second dropdown populates based on the selection of the first, ie: [CATEGORY] + [SUB-CATEGORY] = SEARCH The problem is that occasionally the ...
0
votes
0answers
21 views

Enqueue script in ajax shortcode call

I load a template part via ajax which contains a shortcode, which needs a javascript file to draw something. How do you enqueue it? Should I echo <script></script>? But what if it's ...
0
votes
1answer
30 views

AJAX Call in Plugin Returns More than JSON

I have a plugin tat extendeds Gravity Forms consisting of one PHP file and a JS file. The PHP file can be found here: http://pastebin.com/VUX5AfLP The JS File can be found here: ...
0
votes
0answers
21 views

How to force TinyMCE to update

I'm using the wp_editor function to display TinyMCE on the front end of my site. I have an AJAX script hooked up to the submit button on my form that shoots off to admin-ajax.php (as in WordPress ajax ...
0
votes
0answers
74 views

autocomplete automatically wordpress custom post dropdown attached to taxonomy term using Ajax and jQuery

Please, I want to create a wordpress-Ajax and jQuey driven form, that sends a bench of informations about a list of schools. That form will process data from custom post type" School" related to an ...
0
votes
0answers
16 views

wordpress use single ajax in place of multiple ajax requests in a smarter way

In wordpress I have database tables like this product name id product_name 1 A 2 B 3 C 4 D product_buying_price id product_name product_buying_price 1 A ...
1
vote
0answers
34 views

infinite-scroll for 2 fixed height containers

I have 2 fixed height columns for 2 different post-types. The goal is to get the infinite-scroll to work in both containers. I know that the JetPack infinite-scroll container parameter uses ID value ...
0
votes
0answers
22 views

Getting the current page post_id in function hooked to wp_ajax?

I have created a kind of a social network where when a user registration happens, I create a post (custom post type follower) for each user and assign its post_id to the user ( ...
0
votes
0answers
29 views

AJAX call keep sending message

I'm working on a form from front-end which inserts a post via AJAX. Everything works fine but when I opened chrome's console in the wordpress-admin menu and click on the specific post type it keeps ...
-1
votes
2answers
491 views

Dynamically populate Cascading Dropdown from MySQL using JQuery/AJAX [closed]

What I'd like to achieve is managing tables in the front-end of a WordPress page the same way as MS Access does. So, I'd like to show dependent cascading dropdown which are related by foreign key and ...
1
vote
1answer
133 views

Proper way to load a single post via Ajax?

I'm loading single posts via Ajax into a div that I have set up on my index page. Everything is working fine in this regard. I want to use history.js to push/pop the state so if users enter ...
2
votes
1answer
13 views

Get Plugin Information from Multiple Sites Externally

I'd like to create a dashboard of sorts of plugins I'm using on multiple sites. I'm able to use get_plugins() to gather the information I want within each site, but how can I make that data accessible ...
0
votes
1answer
21 views

Possibility of creating a folder in the wordpress root install and installing a file there, all via plugin?

Here is my situation. I'm creating a plugin, which uses a 3rd party API service. If I include the file ajaxAPI.php in the plugin itself, then call it via jQuery ajax with the full url, such as ...
0
votes
1answer
39 views

How to display checked posts on another page over AJAX? (like comparasion style)

I wanted to create an "comparasion" model for my WordPress Website, but gone bad at that. I cannot figure out how to ... On one page I have displayed post (custom post type, ex. "Products"). Next to ...
0
votes
1answer
16 views

Why is a old comment reply comment appearing at end of comment list as well

EDIT: Updated function to use get_comments offset param. Issue is still occurring. I am displaying 5 comments at the end of an article and using ajax to request the rest of the comments. On this ...
0
votes
1answer
35 views

Displaying contents of a tab

I have been trying to figure out how to accomplish what I need done which I can show here . I had asked this question in StackOverFlow which I got a good answer but I don't know how to implement it i ...
0
votes
0answers
75 views

Failed to Register WordPress Custom User Role via Ajax Submit Form

I edited my WordPress site custom registration page. I've added 2 new user roles: Employer Agent I renamed default WordPress Subscriber role to Job Seeker. And, this Job Seeker role has all the ...
0
votes
0answers
19 views

Security Plugin Blocks Access to theme folder?

I'm using some jquery to do an ajax request within my theme and it's spitting out a file 404 error even though the file exists. I"m guessing it has something to do with the security plugin. here's ...
1
vote
3answers
76 views

WordPress embeds in AJAX inserted content

I have a page that is calling in the content from other posts (a custom post type, specifically) and inserting it into the page. It all works great, but I'm losing the functionality of WordPress ...
0
votes
1answer
49 views

i'm trying to get all my media query attachments via ajax in wordpress

i'm trying to load all my media files via ajax: $.ajax({ url: '/wp-admin/admin-ajax.php', type: 'post', data: { 'action': 'query-attachments', 'post_id': 0, ...
0
votes
1answer
45 views

Using wpdb without loading all plug-ins via wp-load.php

I'm trying to prevent WP from loading all plug-ins when including wp-load.php, since I don't really need them nor the usual WP actions/filters. All I need is the WPDB class to query the database ...
0
votes
0answers
33 views

How to paginate custom query in functions.php?

I have a page with content filter. This filter do AJAX call to query in functions.php: function load_ajax() { $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( ...
0
votes
3answers
199 views

Single page site + pushState?

I have a single page site with posts that get loaded via Ajax on the same page via slide down div. When a post is 'activated,' I want that state to be set so that when I visit the url directly, it ...
0
votes
0answers
27 views

Are nonce really needed in frontent AJAX?

While doing some Wordpress development, I found that many frontend plugins, like contact forms, are using nonce values. Are they really needed? From security point they don't do much, as scraper can ...
0
votes
0answers
44 views

Display page/post content with Ajax - Shortcode Issue

Sorry for my english :) I am trying, for my new portfolio to load content post on home page with ajax. It's almost ok. I got issue with shortcode. I try many thing (iframe, but it not i'm looking ...
0
votes
0answers
88 views

admin-ajax.php taking a really long time to respond?

I'm loading posts via Ajax and I noticed that it's taking on average about 4-5 seconds for the response. Is this normal? Is there anything I can change in my code below to speed things up? I'm not a ...
0
votes
0answers
13 views

Ajax asynchrous http request

I'm dealing with a form which is submitting custom posts.I want also the data to go in the google sheets.I've a function for that but i'm really struggling to get into wordpress plugin fileas as it ...