[wp-trac] Re: [WordPress Trac] #4177: new conditional tag: has_excerpt

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 22 18:39:05 GMT 2007


#4177: new conditional tag: has_excerpt
------------------------------+---------------------------------------------
 Reporter:  FekketCantenel    |        Owner:  rob1n 
     Type:  enhancement       |       Status:  closed
 Priority:  normal            |    Milestone:  2.3   
Component:  Template          |      Version:        
 Severity:  trivial           |   Resolution:  fixed 
 Keywords:  has-patch commit  |  
------------------------------+---------------------------------------------
Comment (by FekketCantenel):

 "Your code would only work with the current post. This function can take
 any post ID as a parameter."

 Ahhhhhhhh, I see. So this way, you could write has_excerpt('1') (the
 post's ID) and find out if that post has an excerpt. It's a good thing you
 thought of that.

 Thanks for the information.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4177#comment:11>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list