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

Using AJAX with Forms

I am attempting to validate and submit a form using AJAX in WordPress, however, the response that I am getting is 0. According to the codex, this would seem to indicate that admin-ajax is unable to ...
-1
votes
1answer
53 views

Ajax calls in wordpress

I want to send a ajax request in wordpress which tracks my clicks. For now i have added this in my functions file : add_action('init', 'my_script_enqueuer'); function my_script_enqueuer() { ...
1
vote
0answers
497 views

Contact Form 7 conflict with Advanced Ajax Page Loader plugin

I am using Advanced Ajax Page Loader plugin form loading my pages. One of the pages contains Contact Form 7. When the page loads, it shows fine but when I try to submit the form, contact form 7 ...
4
votes
1answer
177 views

Registering AJAX callback function that is part of a class without instantiating the class in function.php

I'm not even sure if this is possible. But nevertheless I thought of asking. I'm in habit of wrapping/grouping AJAX calls for a particular need within a class. See below. class my_class { ...
0
votes
1answer
96 views

POST from jQuery to PHP

I have a form that passes field values to jQuery, which validates the fields and creates the variables being sent in data: {} in the snippet below. $.ajax({ type: "POST", url: "<?php ...
0
votes
0answers
19 views

Lightbox Post Pop-up on homepage [duplicate]

I've been working on sampression lite theme and what I want to achieve is when a post' thumbnail/read more link on homepage is clicked, a modal will pop-up ( similar to pinterest and this wp theme ...
0
votes
0answers
51 views

How to utilize theme customizer live preview in this situation?

Short version: I am using the theme customizer in my theme and javascript for the live preview. I am not sure how to implement the javascript for php(as seen in code excerpt). I am creating a theme ...
0
votes
0answers
192 views

Loop not appending through infinite-scroll ajax call

I'm having trouble debugging why the InfiniteScroll jQeury plugin isn't loading more of my .boxy class items. So far I've placed the div containing the selectors in different levels of heirarchy, but ...
0
votes
1answer
48 views

How to load wordpress sidebar using AJAX [duplicate]

I am using responsive design on my website. Everything is fine except for the fact that on a mobile phone, my website is just too long. There is just too much content for a mobile screen - too much ...
0
votes
1answer
106 views

Not getting an ajax readystatechange on my page

I've been trying to get a stand alone web page I use rebuilt as something that can be accessed as a page in my blog. Following advice I've created a new template for this page and do all my work ...
1
vote
0answers
88 views

Ajax : Call undefined function plugin_function() … can't call any plugin function

I use a Ajax query to show some content, but I can't use any of my plugins functions. Javascript : $('#load_more').click(function() { var data = { action: 'load_more', id: ...
1
vote
1answer
98 views

Load ajax if is_home()

I want to show some simple things on homepage with ajax. The problem is I want to load everything when is_home() is true. Php, js, everything. In funtions.php: add_action('init', ...
1
vote
0answers
54 views

videopress videos are not displayed when loading the content with ajax in a lightbox

I'm using videopress and I'm adding the videos into posts with the videopress shortcode, and when I visit the post I can see the videos and play them, but the problem is when loading the post with ...
0
votes
1answer
270 views

AJAX pagination call to get_posts with an offset and a meta_value_num sort returns same post on adjacent pages

I have a simple AJAX pagination that seemed to work just fine, calling one Wordpress page (not ideal, I know) with a pagenum and a sort order arguments and it returned 4 custom posts per call. The ...
0
votes
2answers
149 views

Pull GetOption() variable into jQuery dynamically created html

I have a page with the following markup in the site theme footer: <div id="modalpopup"><div id="inside"></div></div> I have a variable in the WP db I can retrieve via ...
0
votes
1answer
222 views

Change Post Meta via AJAX from the posts list table

I've been looking around for this for a while but haven't found anything as of yet. I have a custom post type - "books" and this post type has a custom meta field of "availability". I would like to ...
1
vote
1answer
192 views

update_user_meta doesn't work with AJAX

I try to keep user subscription in a metadata var. The function is called by AJAX. Ahe AJAX is called but the metadata does not seem updated on frontend. Here is the code: jQuery <script ...
0
votes
0answers
80 views

How to disable controls in theme customizer?

Edit: I have rewritten the question in hopes I will get a reply from someone who knows the theme customizer. I am trying to figure out how to disable setting controls in the Wordpress theme ...
0
votes
1answer
256 views

Three level taxonomy dropdown frontend

I have a code in my functions.php to display 3-level taxonomy dropdown: $brand_taxonomy = 'county'; $taxonomy_name = 'Vietovės pasirinkimas'; ...
2
votes
1answer
665 views

How to add default images into theme customizer image control?

I am trying to figure out how I can pre-load a theme customizer image control with images I have selected. Is their a way to point the control to a directory so they automatically show up in the ...
0
votes
0answers
92 views

How to add a new custom field by AJAX?

Just like AJAX_in_Plugins and previous question update-custom-field-meta-value: jQuery.post(ajaxurl, data, function(response) { // update the custom field value without reload ?? }); I make ...
0
votes
1answer
2k views

Ajax Validation for reCaptcha

Background I have a registration form that validates with AJAX using jQuery Validation Engine. The form was created using Theme My Login and contains reCaptcha which I implemented using WP-reCAPTCHA. ...
3
votes
5answers
1k views

Admin Ajax is returning 0

I am relatively new to jQuery and AJAX in particular. I have a small issue with the return value always being 0, though I think this is actually the success message and it's not returning anything. I ...
0
votes
2answers
311 views

Ajax requests from front-end with jQuery Fancybox

I would like to be able to use the jQuery Fancybox's Ajax feature to request datas from the front-end. Here is a part of the code i'm using on the plugin part : wp_localize_script( 'wpPluginjs', ...
0
votes
0answers
69 views

Problem with function not executing

I am sorry for the long post but I wanted to be thourough in hopes someone could help me figure out this issue. I have been trying to get it working for 2 days with no such luck. I would appreciate ...
0
votes
1answer
435 views

Why is ajax working on one server and not the next?

I have some script that works on my dev server but not on my staging server: add_action('wp_head','get_gz_info',30); function get_gz_info(){ ?> <script ...
0
votes
0answers
58 views

AJAX post method for searching posts error

The following errors occur when you try to load an URL with [] in it (as far as I know). I don't know why I am getting this errors, how can I correct the code below? Errors: Warning: strpos() ...
0
votes
1answer
134 views

Why can wordpress not find the actions I add in my constructor?

I have a theme which has a page to display a keyword taxonomy called taxonomy-keyword.php. From this page I instantiate a sort of ViewModel called KeywordPage. It looks like this: namespace ...
10
votes
1answer
442 views

Using jQuery to delete data stored in wp_options

I wonder if anyone could advise me further on my problem. Part of my plugin stores log files for debugging purposes. I have successfully displayed them in a (div#log) in my admin page using jquery ...
1
vote
1answer
4k views

How do I filter posts by taxomony using AJAX

I found this post that describes how to filter category posts with Ajax and it works great, but I also want to filter my custom taxonomies the same way and I can't get it to work. It shows me all ...
0
votes
1answer
104 views

wordpress widget missing jquery

I have live score website and it is not wordpress based i build a widget for pure php websites but now i want to offer the widget to wordpress users problem is when i tried the widget i get three ...
10
votes
2answers
1k views

Does the functions.php file ever get called during an AJAX call? Debug AJAX

Trying to figure out an issue a fellow programmer is having. I was wondering if the functions.php file get called at all when you do admin side AJAX? I know that when you do an AJAX call a part of ...
0
votes
1answer
57 views

Capturing POST data

I am trying to modify the Member Status Plugin so that the status are based on the data saved on a custom database table. Basically I wanted to change the administration menu with a form that can ...
0
votes
1answer
150 views

calling admin-ajax.php from admin-ajax.php

I'm writing a plugin that calls the output of another plugin's ajax, which is set-up at wp_ajax_ I would have called the functions directly, but limitations in the plugin make that a non-option. To ...
0
votes
0answers
260 views

Post thumbnail to append post content via ajax click event

I've searched hi and dry, tried various tutorials but I just cant get anything to work and its been a good 3 weeks now :( I have a loop that displays custom post thumbnails in a grid using this ...
0
votes
0answers
91 views

Convert WordPress SACK code to new admin-ajax

I have been using the TW-SACK library in my plugin using the below code: <?php wp_print_scripts(array('sack')); ?> <script type="text/javascript"> //<![CDATA[ ...
4
votes
1answer
397 views

AJAX vs Fragment Caching for W3 Total Cache

I'm running a WP site with WooCommerce and I want to do some caching. I'm going to exclude the pages such as the cart/checkout for obvious reasons however there are a couple of the things on the site ...
2
votes
1answer
139 views

Is it safe to post form data via Ajax to the settings api? Am I missing something?

In my Wordpress Admin, I have my theme options set-up using the Settings API. I am trying to save the theme options form using Ajax so that the page does not refresh. The only thing i needed to add ...
0
votes
0answers
93 views

delete attachment for one post without deleting actual attachment post

I'm writing custom ajax calls for media attachments from FrontEnd, I have everything read to use, except the actual logic. I'm using WP E-Commerce plugin, where I want many images for one post. And I ...
0
votes
0answers
71 views

Include other parameters in permalinks for better management of browser history

In single.php, I have the following items that I manage (create, update, hide) with jquery/ajax: a <select> tag in which I return all website categories. a second <select> tag in which I ...
1
vote
1answer
361 views

WP_Query with ajax handler returns the same posts

I have a problem that is getting me bald atm. I have a ajax call that handles a loop that handles some querys and returns posts for me. So far so good, but the first time the user sees the page we ...
1
vote
0answers
75 views

Loading Multiple Comments Pages via Ajax?

I have been searching Google and still haven't found any great ideas for making comments pages load via Ajax. After searching SE I found this older thread from just a few months ago which provides a ...
-1
votes
1answer
556 views

How to create load more button without a plugin?

I'm using Jobroller Apptheme, it will show the first 10 jobs list in the home page with pagination which allows to go next page. But I would like to create a load more button instead of normal ...
0
votes
1answer
116 views

jQuery AJAX call not executing in Plugin

I've been working on a class for my free plugins that outputs a "Donate" form. The "No thanks" dismissal link hides the form and runs an AJAX call to update a WP Option keeping track of the ...
1
vote
1answer
359 views

Showing Author Information and Latest Post by author in lightbox when clicked on the name of the author

I am showing details of all the authors including the avator, Name, Description in my blog. When I click on the OPTIONS TO CONNECT link a lightbox will open and I need to show those details(which I ...
3
votes
2answers
91 views

Is it safe to assume that a nonce may be validated more than once?

From what I have gathered, once a nonce is generated it is valid for reuse for the next 48 hours. Is it safe to code with this in mind? I'm writing a plugin that does a bit of toing and froing with ...
1
vote
1answer
74 views

wp_verify_nonce doesn't return true on server when it matches the nonce

$.ajax({ type: "POST", dataType: "text", url: ajaxurl, data: { action: "more_news", nonce: nonce, offset: offset }, success : function(data, ...
1
vote
0answers
85 views

Attach time/date stamp on add_post_meta

we have an image viewer on our website where admins can tag images thought ajax (new feature on Wordpress 3.0). We are tagging just fine, but we need to filter when they were tagged. We are using ...
0
votes
0answers
106 views

How can I update options with javascript?

I'm writing a plugin with an admin screen. I have a set of radio buttons to select the tabs on the plugin's admin page. I also have a 'last_tab' option that allows the administrator to pick up where ...
1
vote
1answer
420 views

Ajax loop in sidebar to load post titles/categories

I have a sidebar that displays the 20 latest posts, what I'd really like to do is Ajaxify that loop so there's a load more button at the bottom. The problem is, it's a fairly complicated loop and ...