start_wp()
Deprecated from version 1.5.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.
Sets up the WordPress Loop.
Use The Loop instead.
No Hooks.
Return
null
. Nothing (null).
Usage
start_wp();
Notes
- Global. WP_Query. $wp_query WordPress Query object.
Changelog
Since 1.0.1 | Introduced. |
Deprecated since | 1.5.0 |
start_wp() start wp code WP 6.7.1
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() ); }