Title: start_wp
Published: April 25, 2014
Last modified: August 20, 2026

---

# start_wp()

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/start_wp/?output_format=md#description)
 * [Source](https://developer.wordpress.org/reference/functions/start_wp/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/start_wp/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/start_wp/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/start_wp/?output_format=md#wp--skip-link--target)

This function has been deprecated since 1.5.0.

Sets up the WordPress Loop.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/start_wp/?output_format=md#description)󠁿

Use The Loop instead.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/start_wp/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/deprecated.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/deprecated.php#L63)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/deprecated.php#L63-L72)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/start_wp/?output_format=md#related)󠁿

| Uses | Description | 
| [WP_Query::next_post()](https://developer.wordpress.org/reference/classes/wp_query/next_post/)`wp-includes/class-wp-query.php` |

Sets up the next post and iterate current post index.

  | 
| [setup_postdata()](https://developer.wordpress.org/reference/functions/setup_postdata/)`wp-includes/query.php` |

Set up global post data.

  | 
| [__()](https://developer.wordpress.org/reference/functions/__/)`wp-includes/l10n.php` |

Retrieves the translation of $text.

  | 
| [_deprecated_function()](https://developer.wordpress.org/reference/functions/_deprecated_function/)`wp-includes/functions.php` |

Marks a function as deprecated and inform when it has been used.

  | 
| [get_post()](https://developer.wordpress.org/reference/functions/get_post/)`wp-includes/post.php` |

Retrieves post data given a post ID or post object.

  |

[Show 3 more](https://developer.wordpress.org/reference/functions/start_wp/?output_format=md#)
[Show less](https://developer.wordpress.org/reference/functions/start_wp/?output_format=md#)

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/start_wp/?output_format=md#changelog)󠁿

| Version | Description | 
| [1.5.0](https://developer.wordpress.org/reference/since/1.5.0/) | Deprecated.  | 
| [1.0.1](https://developer.wordpress.org/reference/since/1.0.1/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fstart_wp%2F)
before being able to contribute a note or feedback.