WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can reload my page and have php write a new wpquery and replace the content on my page, but I really don't want to deal with a new page load. Is there an easy way to send a wpquery string (eg "p=7") via ajax? Even if I have to make a custom php page to query, that's fine.

I'm still new to wordpress so I wanted to make sure there's no easy way to do this before I start taking the "scenic" route. Thanks.

share|improve this question
up vote 1 down vote accepted

The accepted answer on this post:

Ajax and autocomplete

does an extremely good job of showing exactly how to integrate an ajax call within Wordpress.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.