[wp-trac] [WordPress Trac] #29808: Post/paging navigation template tags

WordPress Trac noreply at wordpress.org
Tue Oct 28 19:38:43 UTC 2014


#29808: Post/paging navigation template tags
---------------------------------------------+--------------------------
 Reporter:  obenland                         |       Owner:  johnbillion
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  4.1
Component:  Themes                           |     Version:  trunk
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  twenty-fifteen has-patch commit  |     Focuses:  template
---------------------------------------------+--------------------------
Changes (by johnbillion):

 * owner:   => johnbillion
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"30065"]:
 {{{
 #!CommitTicketReference repository="" revision="30065"
 Introduce some new template functions for navigation:

  * `get_the_post_navigation()` and `the_post_navigation()` for navigation
 to the next and previous post.
  * `get_the_posts_navigation() and `the_posts_navigation()` for navigation
 to the next and previous page of posts.
  * `get_the_pagination()` and `the_pagination()` for paginated navigation
 between pages of posts. Uses `paginate_links()`.

 This reduces the need for themes to define their own sets of navigation
 functions.

 Fixes #29808.
 Props obenland.
 }}}

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


More information about the wp-trac mailing list