WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp

Contents

Description

Setup the WordPress query.

Usage

<?php wp$query_vars ?>

Parameters

$query_vars
(string) (optional) Default WP_Query arguments.
Default: ''

Return Values

(void) 
This function does not return a value.

Examples

Notes

  • Uses global: (object) $wp
  • Uses global: (object) $wp_query
  • Uses global: (object) $wp_the_query

Change Log

Since: 2.0.0

Source File

wp() is located in wp-includes/functions.php.

Related

See also index of Function Reference and index of Template Tags.