#19238 closed feature request (wontfix)
New approach for content navigation section in themes
Reported by: | 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)
Note: See
TracTickets for help on using
tickets.
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 );