query_posts seems to reset my query !!!
-
Hello, I’m using “query_posts” inside a plugin (into a function called with each post).
The goal of that plugin is to find related informations to the post.
It’s working in AJAX; I get the ID of the post with ajax that I send to a function :
function folio_mk_infos_getlist($id) {
then I use
`$post = query_posts(‘p=’.$id);
So I “build” the usual object $post (access to $post->… vars)
It’s working perfectly, but the problem is that the query_posts function seems to reset my original query; and so in wordpress the first post is repeated over and over again.
I tryed to put the $wp_query var in a temp var and calling back at the end of my plugin function, but it does not work.How can I do this little trick ?
Thanks !
- The topic ‘query_posts seems to reset my query !!!’ is closed to new replies.