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
563 views

Custom Login with Ajax not working with IE

Iam making my own custom login in wordpress using wp_signon function. Whenever a user enters his credentials, another page is called using ajax. In that page, i check the users credentials, and log ...
0
votes
1answer
760 views

Front-end update_post_meta with ajax

as written in title I'm trying to update a post_meta using Ajax. Actually I'm a complete newbie to Ajax and how it works so, if it is possible, I would appreciate if someone could 'take me by hand' ...
0
votes
2answers
2k views

Getting jQuery AJAX to work in Wordpress (getting -1)

I am trying to figure out how to use jQuery $.ajax() for a project. I setup this test using what I learned from TutsPlus.com. Everything seems to be working correctly except I am getting a -1 ...
0
votes
2answers
730 views

Including 'wp-load.php' after another include() generates an error

I know all the downsides of trying to include wp-load.php, but bear with me :) I'm trying to create my own admin-ajax-like functionality, in a way that I can control whether or not I load the default ...
4
votes
2answers
947 views

admin-ajax.php vs Custom Page Template for Ajax Requests

Is there any reason to use admin-ajax.php for ajax requests versus a custom page template? I didn't know about admin-ajax.php until recently, so what I had been doing is creating a custom page ...
0
votes
2answers
1k views

url - ajax loaded but no JS

I have this url to call the taxonomy.php by pressing the button with the code beneath to show filtered posts: http://myurl/?meta_key=post_views_count&orderby=meta_value&order=ASC This is ...
0
votes
2answers
891 views

AJAX call fails when sending JSON but works with URL style string

When making an AJAX request is works when my data is a URL style string. var options = { type: 'post', data: 'action=my_action' }; The function will get called and return some fake data ...
0
votes
1answer
288 views

Change header.php after ajax call

Is possible change class to body_class() after ajax call to load posts/pages? I would say no, but I have not used much with wordpress ajax, so I ask the question.
1
vote
0answers
183 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 ...
0
votes
2answers
175 views

Would to use AJAX to get an option from the database and use it in a jquery setup or is there an alternative to consider?

I have a slider in my theme. I have a setting in the options which controls whether that slider is set to "slide" or "fade". This slide/fade setting is in the jquery and of course the options setting ...
0
votes
1answer
675 views

Plupload in metabox - AJAX action not working in Class

I'm trying to put the WP Pluploader into a meta box on my posts page - as per Plupload Intergration in a meta-box? and ...
0
votes
1answer
333 views

problems with jquery external rss feed integration

Iam using an external file (feed_home.php) wich is loaded with AJAX onclick. $(document).ready(function(){ $.ajaxSetup({cache:false}); $("#new a").click(function(){ var ...
0
votes
1answer
486 views

Auto-suggest to display meta-data, but not to include it upon click

I'm using wordpress' built in suggest scripts to create an auto-suggest form based on custom post titles... add_action('wp_enqueue_scripts', 'se_wp_enqueue_scripts'); function se_wp_enqueue_scripts() ...
2
votes
1answer
105 views

How to localized one js file for different actions?

I have a group of javascript functions in one js file. each function acts on a specific action and get its own ajax response. some are on different pages, some are on the same page. If I don't do the ...
0
votes
1answer
291 views

Getting selection of posts based on loop variables via Ajax

For a theme I'm building I'm looking to dynamically load in a selection of posts with Ajax depending on if a user selects a category or a year ('show all posts in 2012'). I've seen many different ...
0
votes
1answer
834 views

Pulling Advanced Custom Fields from other pages

Basically I am using Advanced Custom Fields and have an ajax tabbing system that works with the ACF. The current set up is below: <ul class="css-tabs"> <li><a class="current" ...
1
vote
2answers
914 views

Buddypress: Load Ajax Without Template Pack [closed]

How can I load buddypress ajax without using the template pack plugi n? I had this in a non-buddypress compatible theme's functions.php. include( BP_PLUGIN_DIR . ...
-1
votes
1answer
303 views

apply_filters, EMBEDS and AJAX not a friends?

I encountered a problem... There is content that contains a YouTube link Lorem ipsum bla bla bla http://www.youtube.com/watch?v=nTDNLUzjkpg My plugin display this content with that code in the ...
0
votes
1answer
80 views

Any plugin or Script to integrate ajax selection module into WordPress page

I am creating a WebHosting site using WordPress. It needs a custom feature selection module to add remove amountof disk space etc. In this particular website that I like 1), there is a custom ...
0
votes
1answer
381 views

Ajax Slideshow in Post

Is there a way to make an ajax slideshow like this? Each slide contains an image and description and is loaded via ajax call. I suppose an easy way for an author to make up such slideshow post is to ...
0
votes
1answer
448 views

Converting a working AJAX form to work with Wordpress

I have a working html form with jQuery validation and have been submitting the data with AJAX, I am now trying to copy this form in to my own Wordpress theme, but I can't see where I am going wrong in ...
1
vote
0answers
1k 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 ...
0
votes
1answer
1k views

How to make registration form ajax?

I have a registration form and I would like to make it ajax, is there such plugin or how can I adjust the standard wordpress registration page to be ajax without reloading page. Thanks in advance.
4
votes
1answer
1k views

next_posts_link not working for loop called with ajax

On my homepage I display a loop of posts that I allow to be replaced by ajax search results and other custom loops. Those results are returned in a template with a custom wp_query. The issue is ...
0
votes
2answers
526 views

ajax front-end increment views on click

I'm using a redirect plugin that adds rewrites to the permalink. I want to count views on the front-end since I can't hook into the single.php as a result. This seems to be close, but it isn't ...
3
votes
1answer
2k views

Template issues getting ajax search results

I'm trying to put search results into a div with ajax. The issue is I'm getting errors saying undefined function have_posts() when the the search template is accessed. It also took issue with ...
2
votes
2answers
507 views

How to verify nonce from Bulk/Quick Edit in save_post?

I need to do something specific in my save_post callback for bulk and/or quick edits, so how do I check the nonce for that? I can only find _wpnonce in the edit.php html source, but can't find an ...
3
votes
2answers
302 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() { ...
0
votes
1answer
2k views

Add AJAX “Load more” on custom query block

I have a index,php with various new WP_Query all working ok, but in this block I need to implement that "AJAX thing people love - the load more posts": <h2>Latests articles <?php ...
1
vote
2answers
712 views

is_admin() returns true when using admin-ajax.php from front end script

Had a situation today where I was using admin-ajax.php from a front end script. As I understand it this the wp way to make ajax calls (registering my function with the wp_ajax_nopriv_myfunction hook) ...
0
votes
1answer
146 views

Ajax for non-logged-in users

I'm working on a plugin that captures some data from a non-logged-in user (such as a Like Button) and enters it into the database based on post_id. My plugin works fine for logged-in users but ...
0
votes
1answer
160 views

Why this plugin doesn't work with media upload page?

I found this plugin very useful ajaxed-status It was created for post and page, and I want to apply it on media library. so I commented out the line if (is_admin() /*&& ($pagenow=='edit.php' ...
0
votes
2answers
883 views

update_option is not saving an array, but saving the string 'Array'

I have come across quite an odd problem when using the update_option function, and I am sure that I've tried everything I can think of to get it working, but unfortunately it isn't. I'm using AJAX to ...
0
votes
1answer
63 views

ajax response -1 in wordpress theme

I am using ajax in wordpress theme,but ir response -1,why? how to correct this? function videospage(cnt) { var pageno=cnt; jQuery.ajax({ type: "POST", url: "<?php echo ...
2
votes
2answers
3k views

Get Previous & Next posts by Post ID

How can I go about getting the previous and next posts from outside the loop? Everything I try to do aside from the custom SELECT query (using get_posts or WP_Query) breaks stuff further down the ...
0
votes
1answer
102 views

AJAX and -1 response

I know this has come up a number of times but it is driving me nuts. I've spend hours trying to debug it. My AJAX isn't working for non-logged in users. Here's me action: ...
0
votes
2answers
749 views

How to Custom Edit Post Title & Permalink Slug?

I'm trying to build some functionality where if you're logged into an admin account you'll see a small 'edit' link next to each post title. clicking will use jquery to create 2 form inputs - 1 with ...
1
vote
1answer
1k views

How to put JQuery/Ajax inside shortcode?

The purpose of this plugin is to create a list that users can modify with up or down votes. The shortcode is supposed to display the list on a page and use JQuery to fadeIn and fadeOut while updating ...
0
votes
2answers
946 views

How to filter a static post page with ajax and $wp_query

I'm at a loss, I've found several unanswered questions related to this one. I have a static post page which has a search form in the sidebar. What I want to happen is to type in a keyword and then ...
6
votes
2answers
5k views

Enable Submit Comment Without Page Reload (Using Ajax)?

When user writes a comment and hits the submit button, WordPress reloads the page, before the comment is shown to the user. Is there an Ajax-based solution that allows users to submit questions ...
1
vote
1answer
126 views

making sense of admin-ajax

So I'm working with ThemeTrust's "reveal" theme, and there is an ajaxed in chunk-of-content that I'm really trying to change (grab custom meta fields (images) + insert into a slideshow). As far as I ...
0
votes
2answers
844 views

Specify ABSPATH in jQuery url

I'm building a custom jQuery form and I need to specify the siteurl in the url that loads /wp-admin/admin-ajax.php. I place this code in the template that has the form: <script ...
4
votes
2answers
3k views

Why might a plugin's 'do_shortcode' not work in an AJAX request?

tl;dr: Contact Form 7's shortcode doesn't work in an AJAX request when called with do_shortcode functions.php add_action('wp_ajax_ps_get_survey_form', 'ps_get_survey_form'); ...
0
votes
1answer
1k views

How to make wordpress URLS google friendly for ajax driven sites?

Our wordpress site utilizes the wordpress cms to serve up json data that we ingest via ajax requests and serve up with javascript. I would like to create URLs for my regular wordpress pages/posts that ...
1
vote
1answer
310 views

Plugin Settings not Saving on Ajax re-ordered table

This is an extension of Update Option Stored in Multi-Dimensional Array which was help getting draggable plugin options to save via ajax (which works), but unfortunately this is specific to the actual ...
3
votes
3answers
6k views

How to load wp_editor() through AJAX/jQuery

I have a theme that is custom developed and really complex. One of the things that I have is multiple content areas where users can specify content for specific tabs. I load multiple instances of ...
2
votes
0answers
492 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
1answer
2k views

what does $options = get_option('test_theme'); do?

I'm trying to set up theme options so they save with AJAX, I found this tutorial http://return-true.com/2010/01/using-ajax-in-your-wordpress-theme-admin/ it's calling $options = ...
3
votes
1answer
767 views

How to add a sub menu with AJAX?

What i want to do is fire up the add_submenu_page() function from within ajax on my plugin options page. When i click an "Add League" link, i want to display an ajax input[text] that will save into ...
0
votes
2answers
422 views

Connect Agile Carousel to WordPress AJAX

Originally I hacked together Agile Carousel and WordPress by passing wp-load.php into the AJAX script but clearly that isn't the way to go. I've now read that wp-admin/admin-ajax.php is better, but I ...