Skip to content

Instantly share code, notes, and snippets.

@dana-ross
Created August 30, 2013 15:47
Show Gist options
  • Save dana-ross/6391213 to your computer and use it in GitHub Desktop.
Save dana-ross/6391213 to your computer and use it in GitHub Desktop.
// There should be an "ajaxurl" variable set that you can use instead of hard-coding the url here
jQuery.get('/wp-admin/admin-ajax.php', {'action': 'this_sucks', 'postid': '1234'}, function(data, status, jqXHR) {
// Display post here
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment