Opened 14 years ago
Closed 11 years ago
#21002 closed enhancement (wontfix)
Feature request: wp_link_pages() needs support for formatting the current page
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | Posts, Post Types | Keywords: | needs-patch |
| Focuses: | template | Cc: |
Description
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)
#3
@
14 years ago
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
- Version 3.4 deleted
#4
@
14 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.
#7
@
13 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
@
13 years ago
- Component changed from General to Template
- Type changed from feature request to enhancement
#10
@
11 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)
For quick reference: http://codex.wordpress.org/Styling_Page-Links