[wp-trac] [WordPress Trac] #7231: wp_link_pages: option next_and_number

WordPress Trac noreply at wordpress.org
Tue Aug 26 11:12:52 UTC 2025


#7231: wp_link_pages: option  next_and_number
-------------------------------------+-----------------------------
 Reporter:  jan831                   |       Owner:  sorich87
     Type:  enhancement              |      Status:  accepted
 Priority:  normal                   |   Milestone:  Future Release
Component:  Posts, Post Types        |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-test-info has-patch  |     Focuses:  template
-------------------------------------+-----------------------------
Changes (by dhruvang21):

 * keywords:  needs-patch has-test-info => has-test-info has-patch


Comment:

 @SirLouen I’ve created a new patch. You can test it by adding the
 following snippet:
 {{{
 'next_or_number' => 'next_and_number',
 }}}

 inside the wp_link_pages function.

 I’ve tested it with the Twenty Twenty theme and attached screenshots for
 reference. I’d appreciate your suggestions and code review. If everything
 looks good, I’ll go ahead and create a PR as well.

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


More information about the wp-trac mailing list