[wp-hackers] Making use of The Loop in a shortcode function
Kunal Bhalla
bhalla.kunal at gmail.com
Thu Jun 24 11:17:27 UTC 2010
Instead of cloning and retaining the original values of the current
post as well as wp_query it might be better to simply create a local
instance of wp_query and not overwrite the global instance.
This would require directly accessing wp_query's methods from your
local instance and not using the template tags, etc. that wordpress
provides, but might be better in terms of not missing any globals that
get over-written.
wp-includes/query.php might be helpful to see what I mean.
Kunal
@kunalbhalla
More information about the wp-hackers
mailing list