[wp-trac] [WordPress Trac] #14580: <?php the_date(); ?> not working on scheduled posts?

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 18 05:19:19 UTC 2010


#14580: <?php the_date();?> not working on scheduled posts?
-----------------------------+----------------------------------------------
 Reporter:  christopherross  |        Owner:                 
     Type:  defect (bug)     |       Status:  closed         
 Priority:  normal           |    Milestone:  Awaiting Review
Component:  General          |      Version:                 
 Severity:  normal           |   Resolution:  worksforme     
 Keywords:  the_date         |  
-----------------------------+----------------------------------------------
Changes (by Viper007Bond):

  * status:  new => closed
  * resolution:  => worksforme


Comment:

 Are you aware that `the_date()` is specifically designed to not always
 output a value? Take a look at the documentation for the function:

 http://codex.wordpress.org/Function_Reference/the_date

 Unlike `the_date()`, `get_the_date()` will always return a value.

 I'm going to mark this as `worksforme` as this is a common mistake. Please
 reopen if you are sure you are using the function correctly.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14580#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list