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 ...
0
votes
0answers
21 views
load just content part of a post into lightbox/modal window
I'm thinking to load into a lightbox/modal window just a specific part of a post.
The post markup is something like this:
<div class="single-template-wrapper">
<header ...
0
votes
0answers
14 views
Ajax function returns notice on ms-blogs.php
I have written some Ajax functions which works fine for trashing/resotring/deleting posts (with custom type: wpsc-product (wp e-commerce plugin))
Now, I want to use this functions to delete other ...
-1
votes
1answer
16 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() {
...
0
votes
0answers
15 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 ...
1
vote
1answer
24 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
20 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
15 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
11 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
30 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
14 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
28 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
39 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
29 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', ...
0
votes
0answers
18 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
25 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 ...
-1
votes
0answers
31 views
Ajax tabs not animating content
I am having some trouble with jquery ajax in Wordpress. I want Ajax to load content from other pages in a div called "place-content". They are loading but it jumps to the top of the page every time a ...
0
votes
2answers
52 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
58 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 ...
0
votes
0answers
50 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
19 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
45 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';
...
1
vote
1answer
101 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
12 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
125 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.
...
2
votes
2answers
70 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 ...
-1
votes
0answers
69 views
woocommerce - load product with ajax
Is there a way to properly load product single page with ajax?
I have created "ajax-product.php" which looks like this:
<?php if( !defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
...
0
votes
2answers
57 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
24 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
44 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
26 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
43 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 ...
9
votes
1answer
247 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
202 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
40 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 ...
9
votes
2answers
248 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 ...
-3
votes
0answers
24 views
Is my site hacked or something? [closed]
My problem is there is a weird markup <div style="display:none"><b></b></div> automatically added to admin mode on my site. It makes the ajax call on the "Set Featured" popup ...
0
votes
1answer
30 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
0answers
40 views
Saving term using “suggest” script and “ajax-tag-search” action
I am building a front-end post edit / create form. The form uses an auto suggest for taxonomy, powered by built in suggest script & the ajax-tag-search action. The script is working fine, but I am ...
0
votes
1answer
68 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
59 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
22 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">
//<
