WordPress开发者和主题制作者的搜索引擎



start_wp ›

Since1.0.1
已弃用1.5.0
start_wp ( 没有参数 )
链接:
定义在:
文档:

Sets up the WordPress Loop.

Use The Loop instead.



源码

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