start_wp

The timeline below displays how wordpress function start_wp has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.5

/**
 * Sets up the WordPress Loop.
 *
 * Use The Loop instead.
 *
 * @link https://developer.wordpress.org/themes/basics/the-loop/
 *
 * @since 1.0.1
 * @deprecated 1.5.0
 *
 * @global WP_Query $wp_query WordPress Query object.
 */
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());
}

WordPress Version: 5.3

/**
 * Sets up the WordPress Loop.
 *
 * Use The Loop instead.
 *
 * @link https://developer.wordpress.org/themes/basics/the-loop/
 *
 * @since 1.0.1
 * @deprecated 1.5.0
 */
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());
}

WordPress Version: 4.6

/**
 * Sets up the WordPress Loop.
 *
 * Use The Loop instead.
 *
 * @link https://codex.wordpress.org/The_Loop
 *
 * @since 1.0.1
 * @deprecated 1.5.0
 */
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());
}

WordPress Version: 4.4

/**
 * Sets up the WordPress Loop.
 *
 * Use The Loop instead.
 *
 * @link https://codex.wordpress.org/The_Loop
 *
 * @since 1.0.1
 * @deprecated 1.5.0
 */
function start_wp()
{
    global $wp_query;
    _deprecated_function(__FUNCTION__, '1.5', __('new WordPress Loop'));
    // Since the old style loop is being used, advance the query iterator here.
    $wp_query->next_post();
    setup_postdata(get_post());
}

WordPress Version: 4.2

/**
 * Sets up the WordPress Loop.
 *
 * @since 1.0.1
 * @deprecated 1.5.0
 * @deprecated Use The Loop - {@link https://codex.wordpress.org/The_Loop Use new WordPress Loop}
 */
function start_wp()
{
    global $wp_query;
    _deprecated_function(__FUNCTION__, '1.5', __('new WordPress Loop'));
    // Since the old style loop is being used, advance the query iterator here.
    $wp_query->next_post();
    setup_postdata(get_post());
}

WordPress Version: 3.9

/**
 * Sets up the WordPress Loop.
 *
 * @since 1.0.1
 * @deprecated 1.5.0
 * @deprecated Use The Loop - {@link http://codex.wordpress.org/The_Loop Use new WordPress Loop}
 */
function start_wp()
{
    global $wp_query;
    _deprecated_function(__FUNCTION__, '1.5', __('new WordPress Loop'));
    // Since the old style loop is being used, advance the query iterator here.
    $wp_query->next_post();
    setup_postdata(get_post());
}

WordPress Version: 3.7

/**
 * Sets up the WordPress Loop.
 *
 * @since 1.0.1
 * @deprecated 1.5
 * @deprecated Use The Loop - {@link http://codex.wordpress.org/The_Loop Use new WordPress Loop}
 */
function start_wp()
{
    global $wp_query;
    _deprecated_function(__FUNCTION__, '1.5', __('new WordPress Loop'));
    // Since the old style loop is being used, advance the query iterator here.
    $wp_query->next_post();
    setup_postdata(get_post());
}