Opened 17 months ago
Closed 17 months ago
#19750 closed enhancement (duplicate)
Add current page class to html produced by wp_link_pages() function
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Template | Version: | 3.3.1 |
| Severity: | normal | Keywords: | |
| 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)
- Summary changed from Add new parameter about current page class to wp_link_pages() function to Add current page class to html produced by wp_link_pages() function
Note: See
TracTickets for help on using
tickets.

#13578