Skip to main content

Questions tagged [ajax]

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 auto-save functionality on post and page editing screens. Several themes and plugins also use Ajax; for instance, some post rating plugins.

1 vote
1 answer
711 views

Ajax, Permalinks and post_thumbnail

As i'm new to AJAX, i'm still learning a lot and have learned a lot over the past weeks. I do need some more assistance on an AJAX issue though: I'm using the following code to display ...
0 votes
1 answer
384 views

jQuery forms & updating info

I'm attempting add some ajax to an existing script, all goes well for the first submit, but subsequent ones are not working as expected. add_action('wp_head', 'my_special_action_javascript'); ...
3 votes
1 answer
4k views

How to get Ajax into a theme - without writing a plugin?

Okay, I'm starting out with some AJAX stuff in a wordpress theme 1) I'm building a child theme OFF the thematic framework 2) My child theme has a header.php, index.php, functions.php and style.css (...
0 votes
1 answer
761 views

Get cat parameter from admin-ajax

I have a plugin that restricts the categories users can view/edit in the admin. All works fine in WordPress 3.0.1, but as I started testing 3.1 I noticed that the category filter, which is AJAX, ...
2 votes
1 answer
3k views

Admin-ajax.php appending a status code to ajax response

I'm writing a plugin that uses Ajax (jQuery with form plugin) via a form submission and the php function returns a JSON response. add_action( 'wp_ajax_bubbly-upload', 'bubbly_upload_submit' ); ...
3 votes
1 answer
4k views

Can I load posts via Ajax?

I would like to make a portfolio page where each entry (a post) would be fetched using Ajax. This way I would have an image gallery, but in which I not only would have images but also the ...
13 votes
1 answer
7k views

How to manage ajax calls and JSON in wordpress

I have a custom post type that i want to access through jQuery - preferably using JSON. So first things first. creating a function that returns/echos json is easy enough, but how would I access it ...
0 votes
2 answers
2k views

WordPress : using AJAX to get posts & Sidebar Content to an external application

Hello friends I am trying to get my wordpress posts to display in a non- wordpress application. Currently I am getting them by using the following method. My wordPress page is something like this: &...
1 vote
2 answers
448 views

__callStatic method handler passed to add_action causes bug in PHP <5.3

I have a class that handles AJAX requests for my plugin. The class has a __callStatic wrapper for all actions, which subsequently calls non-static methods for each action, like so: class ...
0 votes
1 answer
12k views

Loading dynamic content with AJAX breaking jQuery

I'm creating a theme that uses only the homepage. When a button is clicked, the content for that section is loaded into a div on the homepage via AJAX (script below). $.ajaxSetup ({ cache: ...
2 votes
2 answers
2k views

Getting $comments outside the comment template

I have a ajax request hooked on "template_redirect" (the ajax requests the post's url), and I want to display only the comment template: function get_comm(){ if(isset($_GET['get_my_comments'])): ...

15 30 50 per page
1
176 177 178 179
180