start_wp

Sets up the WordPress Loop.

Description

start_wp(); 

Use The Loop instead.


Usage

  1. if ( !function_exists( 'start_wp' ) ) { 
  2. require_once ABSPATH . WPINC . '/deprecated.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = start_wp(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/deprecated.php  
  1. function start_wp() { 
  2. global $wp_query; 
  3.  
  4. _deprecated_function( __FUNCTION__, '1.5.0', __('new WordPress Loop') ); 
  5.  
  6. // Since the old style loop is being used, advance the query iterator here. 
  7. $wp_query->next_post(); 
  8.