On this page
start_wp()
This function has been deprecated.
Sets up the WordPress Loop.
Description
Use The Loop instead.
Source
File: wp-includes/deprecated.php. View all references
function start_wp() {
global $wp_query;
_deprecated_function( __FUNCTION__, '1.5.0', __('new WordPress Loop') );
// Since the old style loop is being used, advance the query iterator here.
$wp_query->next_post();
setup_postdata( get_post() );
}
Related
Uses
| Uses | Description |
|---|---|
| setup_postdata() wp-includes/query.php | Set up global post data. |
| WP_Query::next_post() wp-includes/class-wp-query.php | Set up the next post and iterate current post index. |
| __() wp-includes/l10n.php | Retrieves the translation of $text. |
| _deprecated_function() wp-includes/functions.php | Marks a function as deprecated and inform when it has been used. |
| get_post() wp-includes/post.php | Retrieves post data given a post ID or post object. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/start_wp