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 ...
3
votes
1answer
212 views
External/non-WP rewrite rules
I have a fairly complex wordpress with multiple sub-directories:
example.com/sub1/
example.com/sub2/
I'm trying to implement some history/bookmark support, and to do that I need the URLS containing ...
2
votes
1answer
113 views
Buddypress ajax problem after adding new groups sub nav
This problem has been bugging me for couple of days. After adding a new subnav, I got the following error when trying to use the drop down groups filter:
404 Not Found – ...
2
votes
1answer
185 views
How to modify wp_ajax function?
I want to modify wp_ajax_find_posts function. It receives search string from find-posts form and delivers search results by ajax. Part of the function looks like this:
function wp_ajax_find_posts() {
...
2
votes
0answers
139 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
0answers
53 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 ...
2
votes
0answers
639 views
How to add to cart via AJAX Woocommerce
I have been searching for a while, this. I want to add an item via AJAX. When you add an item to a cart in Woocommerce the page reloads with the GET parameter add-to-cart="The current product ID".
I ...
2
votes
0answers
443 views
“Uncaught SyntaxError: Unexpected token <” in load-scripts.php
Out of curiosity, I'm implementing AJAX in saving post. I didn't know where to start until I found this Q&A. It looks something I can grab and build on. It works but something on the Wordpress ...
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
0answers
34 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
vote
0answers
42 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 ...
1
vote
0answers
29 views
wordpress file upload with ajax when site is ajaxyfi
I am getting problem in upload any file. My word press site is using Ajax Page Loader Plugin.So page is not refreshing when the form is submitting..
I am not getting any value in PHP code in ...
1
vote
0answers
56 views
wp_mail works with add_action('save_post', …) but not an ajax action
I have two actions. One is after saving a post, so add_action('save_post', 'on_any_post');
I have a second action triggered via AJAX, so
add_action( 'wp_ajax_nopriv_saveTaskPriority', ...
1
vote
0answers
234 views
jQuery Plugin to use Wordpress functions in AJAX request
I'm using Chained Selects jQuery Plugin to create multiple chained selection fields. I'm using the remote version of the plugin to build the related options by means of AJAX request from a separate ...
1
vote
0answers
58 views
Post Comments with Ajax in Wordpress
I use this code to post comments with ajax on my WP blog. It works fine but I display the comment form on my homepage so the plugin only works for the first post (first comment form).
I want it to ...
1
vote
0answers
354 views
Dynamic dependent Dropdown lists for Categories, Sub-Categories and Posts!
I'm using WordPress 3.5 as CMS to develop my personal website.
The reason I'm writting, is that I need a way to implement a code or plugin to allow users to navigate through posts using ...
1
vote
0answers
109 views
Show Custom Taxonomy Categories, Listing of Posts, and Single Post via AJAX
I need to be able to do the following:
List all terms in a custom taxonomy (categories for custom post type)
When a user clicks on a category, a listing of all posts in that category appears
When a ...
1
vote
0answers
307 views
Save & Reset button in theme-option with Ajax (without refresh)
I have a theme-options page and i will that the save and reset button loaded without refresh the whole page... but i have no idea, how i can implement ajax in my theme-option... Thank you for your ...
1
vote
0answers
105 views
Ajaxify Form That Submits To Same Page To Display Post Data
I have a drop down menu that submits one of several filter options. The options are submitted to the same page, where post titles are displayed based on these options.
The form is working fine, but I ...
1
vote
0answers
854 views
Filter wordpress post categories with jquery/ajax and pagination?
Currently I have a website working with Wordpress and Jquery Quicksand (http://razorjack.net/quicksand/).
However I don't want to show all posts at the same time. I wish to show e.g. 6 posts and then ...
1
vote
0answers
240 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
0answers
18 views
load blog post with AJAX
I want to be able to load a specific blog post without reloading the page. I was thinking to use prettyphoto which is already installed in the theme which I'm using, I added this :
<a ...
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 ...
0
votes
0answers
16 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 ...
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
36 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
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
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
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
0answers
25 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
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
0answers
43 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
0answers
60 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">
//<
