WordPress.org

Codex

Function Reference/has excerpt

Contents

Description

Whether the current post has an excerpt.

Usage

<?php has_excerpt$id ); ?>

Parameters

$id
(integer) (optional) Post ID
Default: Current post ID

Return Values

(boolean) 
True if the post has an excerpt, false if it does not.

Changelog

Since: 2.3.0

Source File

comments_template() is located in wp-includes/post-template.php.

Related