Make WordPress Core

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)

#1 @archon810
14 years ago

  • Cc admin@… added

#3 @ocean90
14 years ago

  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed
  • Version 3.4

#4 @archon810
14 years ago

  • Resolution duplicate
  • Status closedreopened

@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
14 years ago

  • MilestoneAwaiting Review

#6 @chipbennett
14 years ago

  • Cc chip@… added

#7 @toscho
14 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
13 years ago

  • Component GeneralTemplate
  • Type feature requestenhancement

#9 @nacin
13 years ago

  • Component TemplatePosts, Post Types
  • Focuses template added

#10 @chriscct7
11 years ago

  • Keywords needs-patch added
  • Milestone Awaiting Review
  • Resolutionwontfix
  • Status reopenedclosed

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.