Opened 13 years ago
Closed 13 years ago
#19750 closed enhancement (duplicate)
Add current page class to html produced by wp_link_pages() function
Reported by: | egorpromo | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.3.1 |
Component: | Template | Keywords: | |
Focuses: | Cc: |
Description
Function wp_link_pages() makes row links like:
<a href="http://example/?p=1">1</a> <a href="http://example/?p=1?page=2">2</a> <a href="http://example/?p=1?page=3">3</a>
In this case it is not obvious what page is current. Maybe it is needed to add some class to current page. Suppose current page is 2. In this case link for page 2 has class and html must be something like:
<a href="http://example/?p=1">1</a> <a href="http://example/?p=1?page=2" class="current-page">2</a> <a href="http://example/?p=1?page=3">3</a>
So it is better for design and page usage.
Change History (2)
Note: See
TracTickets for help on using
tickets.
#13578