[wp-hackers] ajax and posts
casey.bisson at gmail.com
Mon May 21 23:09:21 UTC 2012
This plugin may do what you want, or you might At least get some ideas from it:
Two features to be aware of:
+ Wijax allows you to deliver any widget via ajax. You can lazy load the widget or fetch widgets from different sites. It adds a new endpoint to the perms link structure so that you can go to any post permalink, add /wijax/encoded_name and get widgets relevant for that context.
+ the post loop widget puts all the power if WP's post loop into a widget. You can get WP's default post for the given URL/permalink, select posts related to the default posts, or select an entirely different set of posts.
Together, you can deliver a post or set of posts via ajax.
On May 21, 2012, at 5:06 AM, Roman Sharf <pencilking2002 at gmail.com> wrote:
> I have been trying to figure this one out for a while, but to no avail.
> How can I I retrieve posts via ajax? Specifically, I would like to click a
> button on a page, which would send an ajax request to another page which
> has a custom loop and get the results back and spit them out. Also, do I
> have to load the wordpress environment manually on the page I am requesting
> from(So that the loop will work)?
> Thank you in advance!
> "Only put off until tomorrow what you are willing to die having left
> undone." -Pablo Picasso
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers