Make WordPress Core

Opened 13 years ago

Closed 11 years ago

Last modified 11 years ago

#19238 closed feature request (wontfix)

New approach for content navigation section in themes

Reported by: sirzooro's profile sirzooro Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3
Component: Themes Keywords:
Focuses: Cc:

Description

At this moment the only way to replace default content navigation in theme (previous/next posts links) is to manually edit theme files. Ticket #18585 allows to replace this section, but its scope is limited to Twentyeleven and its child themes.

Therefore I propose to introduce generic mechanism, which could be used by theme and plugin autors - e.g. add new content_navigation_template() theme tag. By default it should look for navigation.php file in theme directory and include it. There should be also a new filter, which could be used by child theme and plugin authors to provide alternate navigation section.

Change History (2)

#1 @c3mdigital
11 years ago

  • Keywords needs-patch dev-feedback 2nd-opinion removed
  • Resolution set to wontfix
  • Status changed from new to closed

twentyeleven_content_nav was a theme specific functions. Theme authors can easily write their own wrapper functions for previous or next post link then allow child themes to override by making the function pluggable. Plus you already have filters for adjacent_post_link() which is called by both previous and next post link. echo apply_filters( "{$adjacent}_post_link", $output, $format, $link, $post );

#2 @SergeyBiryukov
11 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.