[wp-trac] [WordPress Trac] #52761: Date Permalinks

WordPress Trac noreply at wordpress.org
Wed Mar 10 16:04:13 UTC 2021


#52761: Date Permalinks
-------------------------+------------------------------
 Reporter:  dshanske     |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Date/Time    |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by dshanske):

 I think I was unclear, apologies. There is no function for getting a
 permalink directly from the current archive page...You would have to
 determine what query was being made then feed it into the functions you
 identified. Also no function to get it from a DateTime or post object..

 For example...

 get_post_date_permalink( $post, type = 'day' )

 get_datetime_permalink( $datetime, $type )

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52761#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list