start_wp()

This function has been deprecated.

Sets up the WordPress Loop.

Description

Use The Loop instead.

Source

File: wp-includes/deprecated.php

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() );
}

Changelog

Version Description
1.5.0 This function has been deprecated.
1.0.1 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/start_wp