is_single( int|string|array $post = '' )

Is the query for an existing single post?

25 related functions found for: is_single

Top ↑

Related terms found for this post

wp-parser-related-wordsexist, is, query-php, singl, single, wp-includes
wp-parser-packageQuery, WordPress

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • exist
  • is
  • Query
  • query-php
  • singl
  • single
  • wp-includes
  • wp-includes/query.php
  • query

Top ↑

Description Description

Works for any post type, except attachments and pages

If the $post parameter is specified, this function will additionally check if the query is for one of the Posts specified.

Top ↑

Parameters Parameters


(int|string|array) (Optional) Post ID, title, slug, or array of such.

Default value: ''

Top ↑

Return Return

(bool) Whether the query is for an existing single post.

Top ↑

Source Source

File: wp-includes/query.php


Top ↑

Changelog Changelog

Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.