Make WordPress Core

Opened 12 years ago

Closed 9 years ago

#21002 closed enhancement (wontfix)

Feature request: wp_link_pages() needs support for formatting the current page

Reported by: archon810's profile archon810 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: needs-patch
Focuses: template Cc:


To follow up my previous feature request #21001, it would be super to see a way to style/format the current page, because it could look different compared to links to other pages (for example ">> Page % <<"). An option called currentpagelink seems fitting.

Change History (10)

#1 @archon810
12 years ago

  • Cc admin@… added

#3 @ocean90
12 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version 3.4 deleted

#4 @archon810
12 years ago

  • Resolution duplicate deleted
  • Status changed from closed to reopened

@ocean90 I appreciate closing #21001 in favor of #13578, but #13578 doesn't currently have the request in this ticket (current page styling) as part of its scope, so I'd like to either keep it open or modify #13578 to include this feature (though then it'll be at the mercy of the ticket author). Please close again if you feel strongly about the latter.

#5 @SergeyBiryukov
12 years ago

  • Milestone set to Awaiting Review

#6 @chipbennett
11 years ago

  • Cc chip@… added

#7 @toscho
11 years ago

  • Cc info@… added

In my themes I do not just use a special class, I replace the link with an unlinked number, because a link to the current page is useless here. For backwards compatibility I recommend an empty a element that could be set per parameter:

$defaults = array(
	'current_page_element' => 'a', /* more parameters */

if ( $i === $page )
    $output .= '<' . $r['current_page_element'] 
        . ' title="' . __( 'You are here. ' ) . '">' . $i
        . '</' . $r['current_page_element'] . '>';

#8 @SergeyBiryukov
11 years ago

  • Component changed from General to Template
  • Type changed from feature request to enhancement

#9 @nacin
10 years ago

  • Component changed from Template to Posts, Post Types
  • Focuses template added

#10 @chriscct7
9 years ago

  • Keywords needs-patch added
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from reopened to closed

Closing as wontfix. Complete lack of interest on the feature on the ticket over the last 3 years. Feel free to reopen when more interest re-emerges (particularly if there's a patch)

Note: See TracTickets for help on using tickets.