wp_reset_postdata [ WordPress Function ]
wp_reset_postdata ( No parameters )
| Uses: |
|
| Defined at: |
|
Soorgelijke functies: wp_set_post_cats, wp_set_post_tags, setup_postdata, get_postdata, wp_get_post_tags
After looping through a separate query, this function restores the $post global to the current post in the main query
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/wp reset postdata « WordPress Codex
Description. After looping through a separate query, this function restores the $ post global to the current post in the main query.
codex.wordpress.org - WordPress › Support » Tags — wp_reset_postdata
Register · WordPress › Support » wp_reset_postdata. Tag: wp_reset_postdata Add New » ... Comments being saved to wrong post... wp_reset_postdata?
wordpress.org - 3 Ways to Reset the WordPress Loop | Digging into WordPress
Sep 12, 2011 ... To use wp_reset_postdata , just place after your custom loop(s). Here is our previous example with wp_reset_postdata to reset the loop: ...
digwp.com - Is it necessary to use wp_reset_query() in a WP_Query call?
Jan 29, 2011 ... function wp_reset_query() { unset($GLOBALS['wp_query']); $GLOBALS[' wp_query'] =& $GLOBALS['wp_the_query']; wp_reset_postdata(); } ...
wordpress.stackexchange.com