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
0answers
5 views

Create a Button alongside add to cart

i want to create a button alongwith add to cart that will perform a specific function. please tell me how to do this.Also can you tell me the css of this button so that the button looks exactly like ...
0
votes
0answers
9 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 ...
0
votes
0answers
10 views

AJAX Request not working for Wordpress Multiple Shipping Addresses Plugin

I have a pretty urgent question and I need some help figuring out this issue. So I bought the Wordpress Multiple Addresses plugin because my client needs the functionality for their e-commerce site. ...
1
vote
0answers
6 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 ...
0
votes
0answers
25 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='+ ...
0
votes
0answers
15 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 ...
0
votes
0answers
20 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 ...
0
votes
0answers
13 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
16 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 ...
0
votes
0answers
23 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.). ...
0
votes
1answer
25 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
15 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
18 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 ...
1
vote
1answer
21 views

Update user meta using with ajax

I want to edit user meta on the front using an ajax form, this is what i have: The form has the user ID: <form id="<?php echo $current_user->ID; ?>"... This is the script:: ...
0
votes
0answers
18 views

How to implement wp_localize_script with add_menu_page

I have a class Namer and this class adds a menu page (add_menu_page) and this in turn loads CSS and javscript, but I can't seem to load the wp_localize_script to do AJAX calls & Nonce, here is my ...
0
votes
0answers
13 views

WordPress Meta Box + WooCommerce - Display for specific product type right away?

So I've created a custom product type 'MY_PRODUCT_TYPE' and a meta box and that displays for this product type: function MY_PRODUCT_TYPE_meta_box($post_type) { $post_types = array('product'); ...
-1
votes
1answer
12 views

Gravity Forms closes my popup on Validation Error [on hold]

I am having an issue with Gravity Forms. A user on my site can open a contact form in a popup menu by clicking a 'contact' button. The form is just in an absolute div that I show/hide on the contact ...
0
votes
1answer
13 views

Variable Products Being Added to Cart with AJAX on Shop and Category Pages

By default, Woocommerce ajax add to cart functionality is only supposed to apply to simple products on archive, shop, category pages, etc.. But for some reason it is also adding variable products to ...
-1
votes
1answer
26 views

Horizontal Scrolling Pagination

Does anyone have a link or tutorial on how make horizontal scrolling pagination in Wordpress similar to this site: http://www.lifeandtimes.com
0
votes
1answer
16 views

Allow guest to update custom post met using ajax

I have a simple click counter that works using ajax, only problem is that if you're not logged in you can't update the counter meta box of the post. In my case the post it's an ad that when clicked ...
0
votes
0answers
19 views

get_posts ( $args) failing when called by AJAX

Here's my code: function ajax_test(){ $default_workout_category = 61 //Hardcoded category for testing $args = array( 'category' => $default_workout_category, 'orderby' => 'title', ...
0
votes
0answers
12 views

Widget that allows image selection

I'm trying to develop a widget that allows the user to select an image to display on said widget. Right now, i'm getting the image from the library and displaying it's thumbnail on the widget's ...
0
votes
0answers
15 views

How to Lazy Load only Selected Images on Selected Pages?

I have one single page (of many) on my site where I want to lazy load images... And on that specific page I don't want to lazy load the first 2 images. How can I achieve this? Any pointers would ...
-1
votes
0answers
15 views

Problem with loading posts

I'm using a plugin to load more posts onclick called "ajax load more". Here is my standard code for echoing out posts: <div id="content"> <?php query_posts('showposts=3'); if ...
0
votes
0answers
17 views

Do I have to include all of Wordpress when using ajax in my plugin?

Based on some reasearch I've done with ajax-calls I understand there can be several things that messes up ajax load times for wordpress. The major thing is that all of Wordpress is loaded at each ...
1
vote
2answers
59 views

Why is my ajax call refreshing the page?

I'm attempting to upload an audio file via AJAX form. Here is my HTML in the profile-edit template. <form method="post" id="my_upload_form" action="" enctype="multipart/form-data"> <input ...
-1
votes
0answers
42 views

Woocommerce ajax change “Add to cart” button to “View cart” after adding product

I want to create variable product added by Ajax on Woocommerce and after adding product cart button must be changed to "View cart" button with cart link. Is this possible? if yes, can someone help me ...
0
votes
0answers
34 views

How can I use ajax in WordPress to refresh the page without reloading the Page?

How can I use Ajax in WordPress to refresh my div content after certain intervals without actually reloading the page. I am struggling with the code. My Ajax code. <html> ...
0
votes
0answers
16 views

Lazy loading Ajax offset not working

I am attempting to create a lazy loading ajax feature on my site. There is a 'click more' button which will then load 10 posts via ajax and append them to the HTML container. I want to display 10 ...
0
votes
1answer
31 views

Accessing an image via ajax

The goal with this is to create a random banner, managed in the wp admin. I can create a banner solution in the wp admin without an issue but need a little help on the ajax side. I have an image ...
1
vote
0answers
13 views

Audio Player not loading when the content is loaded through Ajax, MediaElement.js no applied

When I load the content using ajax it doesn't apply MediaElements.js to my audio player, so the audio isn't display. I think this is because the MediaElement.js is loaded with wp-footer(), and this ...
0
votes
0answers
33 views

Cannat load admin-ajax.php. No access-control allow origin*

XMLHttpRequest cannot load ..../wp-admin/admin-ajax.php.,. No 'Access-Control-Allow-Origin' header is present on ... When on local WAMP it worked just to put header("Access-Control-Allow-Origin: ...
0
votes
1answer
25 views

How can I use wp_ajax_response for front-end error reporting?

I already have the wp hook code in place, and now I want to send error messages back to the front end to be placed in alert box or html element. //my plugin add_action('wp_ajax_track_upload', ...
0
votes
0answers
9 views

Can't see audio when I acces with ajax

I have created an ajax portfolio. It works fine, but when I upload an audio, this is not display. If I acces to the post via my blog page the audio is there. I inspect this file and I discover a ...
0
votes
1answer
58 views

Retrieve post in AJAX Callback

I have a JS file that triggers a PHP callback file. The PHP file is supposed to work on the Post that is currently opened (wp-admin/post.php). I do not want the JS file to pass the post id though ...
0
votes
0answers
14 views

It is possible a Real-Time action in wordpress that reload its page on post update?

Is there a way in wordpress that whenever a post or any other content is updated then automatically all user browsers that are navigating the site get a real-time refresh page.
0
votes
2answers
26 views

load ajax using admin-ajax.php

The append result is 0, instead of a list with the title ass a link. If I check this locally (http://localhost/wordpress/wp-admin/admin-ajax.php?action=lateral_fluid), I get the titles ass a link. I ...
0
votes
0answers
25 views

add_action wp_ajax_ not loading in plugin file WP Network

I'm developing a plugin that relies pretty heavily on AJAX calls. It works well in a single-install version of WordPress, but when I ported it into a Network WP my AJAX functions stopped working ...
0
votes
1answer
25 views

Multiple AJAX requests using the same ajax_object.ajaxurl

I have a plugin that makes different AJAX calls, using the ajax_object.ajaxurl. Both AJAX requests are coded in the same file (emx-functions.js). It seems, however, that only one AJAX call is ...
0
votes
1answer
18 views

Submitting my form to the database and then redirecting to payment site

I am submitting data to my custom table and would then like to redirect to a third party who will handle the payment. (not PayPal). I have the following code which adds the data to the database. The ...
0
votes
0answers
57 views

Get WordPress Page Title, ID, or Template of the Page an AJAX Request is Made From and Pass as Variable in AJAX

I have a page template that includes a region that holds links to a series of video custom post types. Each of the links is tagged with an 'ajax-link' class so that through an AJAX request I can pull ...
0
votes
1answer
25 views

Jquery autosave text area after typing

I'm trying to learn how to use Jquery, and manipulate some existing code to do what I need it to do. I am wanting to edit this code to make an editablecontent text area save a certain number of ...
0
votes
0answers
21 views

Setting TinyMCE Content in wp_editor

I am currently coding on front-end editing in wordpress. The outcome should be evernote-like editing using wordpress posts. The Wordpress database stores markup without paragraphs and adds them on ...
1
vote
0answers
28 views

ajax category filter

I know this is a big ask for you guys, but i can't seem to figure this out. I found this page : http://www.bobz.co/ajax-filter-posts-tag/#comment-28112 it shows how to make a dynamic filter for post ...
2
votes
0answers
33 views

Call javascript function when category was added via ajax

I've created a plugin to handle featured images for categories (well, for custom taxonomy actually, but it doesn't matter). Everything is working fine, except the featured image is not cleared after ...
0
votes
1answer
73 views

plugin shortcode not working on ajax request call

I just bought the Visual Composer plugin from wpbakery, my problem is that I'm making ajax calls to get the content of posts that have been edited with Visual Composer when I get the data it only show ...
0
votes
0answers
15 views

Using gfapi causes admin-ajax to cancel

Perhaps this is better suited for Gravity Forms support, so I'll also look into asking there...however I'll post here just in case anyone has a solution. We're using Gravity Forms to handle ...
0
votes
0answers
26 views

Wordpress get value get_query_var('paged') of a url

Am creating a custom wordpress funtion that receives ajax url value , and i want to get the value of var paged of the received url see below code : functions.php function something() { $p= ...
0
votes
1answer
48 views

how to make custom ajax handler?

i'm trying to make custom ajax handler because the admin-ajax.php is taking to long to handle ajax requests from 7s to 10s so i google it and mange to do some custom ajax-handler.php like this ...
0
votes
2answers
35 views

Enqueue script in plugin is not working

I can't figure out why this script wont load on site. Am I missing something? function ajax_follow_enqueue_scripts() { wp_register_script('follow', plugins_url('the-follow.js', __FILE__)); ...