设置WordPress循环。
原型
start_wp()
描述
请改用Loop。
源文件
路径:wp-includes/deprecated.php
<?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() );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/start_wp/