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

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"> //<![CDATA[ ...
0
votes
0answers
40 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
36 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 ...
0
votes
0answers
230 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
0answers
33 views

Ajax loaded form elements for post-edit screen

I want to load some form elements for a custom post type's edit screen via AJAX. What's the best practice to implement this? Should I use this algorithm? Hook an action to admin_menu to ...
0
votes
0answers
42 views

Ajax call to minimal custom class with WP admin check

I'm creating a plugin that will submit requests via AJAX. As there will potentially be a lot of people submitting requests at once I call the file directly rather than through the WP ajax (reference). ...
0
votes
0answers
34 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 ...
0
votes
0answers
139 views

how to get the variable passing through the ajax url in wordpress query

i want to get the variables passing through the ajax url in wordpress query_post(). here is my javasrcipt <script type="text/javascript"> jQuery(document).ready(function($){ ...
0
votes
0answers
33 views

rewrite rules, replicate page for #! vars

my site has only one page and tons of news in small boxes, i load all of this news from a JSON with jquery. Im trying to make the site google friendly so i've checked in google "AJAX content crawled" ...
0
votes
0answers
16 views

Custom fields function in Ajax-called file

When I call a file with Ajax, I can't access anything from any post as I get this message : Fatal error: Call to undefined function get_post_meta(). I tried to add require_once("wp-config.php"); at ...
0
votes
0answers
229 views

wordpress jquery mobile theme load more posts problem?

I have made new wordpress theme based on jquery mobile using this course - easy-development-with-jquery-mobile and i want to add load more button which load the posts via ajax i tried tried to use ...
0
votes
0answers
201 views

How to use ajax pagination on loop

I need help guys. How can I implement ajax pagination using the below php code for my custom post type "app" <div id="portfolio-wrap" class="clearfix"> <?php //get post type ==> ...
0
votes
0answers
37 views

I am trying to send ajax collected data to the current users database

I am using WooCommerce and added an additional field "location_gps" to collect the location (lat,long) added the ajax call to collect the data. Now I'm stuck getting the data into the current users ...
0
votes
0answers
54 views

Dismiss Admin Pointer Temporarily

I have a custom meta field for a page that contains a future date. I'm wanting to make sure this is always a future date and have decided the best way to do so is by creating an admin pointer if the ...
0
votes
0answers
92 views

Get children with jQuery and wp_list_pages

I'm looking to create a button on a parent level page. If you click that button it runs through each of its children and performs some action via Ajax. The output is spit out back to the parent level ...
-1
votes
0answers
33 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 ...
-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 ?> ...

1 2