Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 6035

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.

8 votes

Adding admin-ajax.php to the frontend. Good or bad idea?

php if (is_admin() && defined('DOING_AJAX') && DOING_AJAX) { // load ajax stuff } Finally: What you complain about, using the localization to get the Ajax URL is a good thing to do. Why? … If you really don't want to localize every script that uses Ajax, simple hook into wp_head really early and spit out the admin ajax URL. …
chrisguitarguy's user avatar
5 votes
Accepted

How to make ajax content indexable by search engines?

In fact, that's what the jQuery Tabs control page suggests: Tabs supports loading tab content via Ajax in an unobtrusive manner. …
chrisguitarguy's user avatar
2 votes
Accepted

Post will not load via ajax

All ajax requests should be routed through the handy /wp-admin/admin-ajax.php file. It works with the great WP hooks system. … Further reading: http://wpajax.com/ http://codex.wordpress.org/AJAX_in_Plugins http://codex.wordpress.org/AJAX
chrisguitarguy's user avatar
6 votes
Accepted

Does wp_localize_script call a Javascript Function or Simply Pass PHP Parameters to It

wp_localize_script takes an array of data (in PHP) spits out a javascript. It's a way for you to add dynamic data for a specific script to the front end without having to hook into wp_head or wp_foot …
chrisguitarguy's user avatar
1 vote

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

I would suggest not using the hash bang urls. Consider PJAX: https://github.com/defunkt/jquery-pjax It does partial page loads to speed things up and gracefully degrades for users with JavaScript di …
chrisguitarguy's user avatar
5 votes
Accepted

Minimal WordPress load for only `get_option` to work (because ajax...)

If you're building something for public consumption (a plugin, a theme, etc) use admin-ajax.php like you should because that is the appropriate and accepted way to do things and gives your end users t …
chrisguitarguy's user avatar