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: | archon810 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Posts, Post Types | Version: | |
| Severity: | normal | Keywords: | needs-patch |
| Cc: | Focuses: | template |
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)
#4
@
14 years ago
- Resolution duplicate
- Status closed → 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
@
14 years ago
- Cc 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'] . '>';
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
For quick reference: http://codex.wordpress.org/Styling_Page-Links