WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#11048 closed enhancement (invalid)

Add new is_excerpt conditional tag

Reported by: newkind Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords: new is_excerpt conditional tag
Focuses: Cc:

Description

Hi,

I'd like request adding new conditional tag - is_excerpt(). It can be very useful to add some stuff to the posts on frontpage that were splitted using <!--more--> tag.

Change History (3)

comment:1 scribu5 years ago

  • Resolution set to invalid
  • Status changed from new to closed

is_excerpt() wouldn't work because it's on a per-post basis, whereas the rest of the conditional tags are related to the current query.

Please use the Ideas forum.

comment:2 westi5 years ago

  • Milestone 2.9 deleted

comment:3 hakre5 years ago

Next to what scribu is saying (which I must confirm as well), this does not make much sense logically. A themer should be able to find out wich actual template/query is using excerpts or not. So this can be decided by the theme or based on the query itself. There is no general rule.

Note: See TracTickets for help on using tickets.