Opened 16 years ago
Closed 16 years ago
#8703 closed feature request (fixed)
Add functions to display adjacent relational links in the head
Reported by: | sivel | Owned by: | westi |
---|---|---|---|
Milestone: | 2.8 | Priority: | normal |
Severity: | normal | Version: | 2.8 |
Component: | Template | Keywords: | has-patch |
Focuses: | Cc: |
Description
Add functions to display relational links for adjacent posts in the head.
Example:
<link rel="prev" href="http://example.org/2008/11/my-previous-post" title="My Previous Post" />
<link rel="next" href="http://example.org/2008/12/my-next-post" title="My Next Post" />
Attachments (8)
Change History (24)
#2
@
16 years ago
- Owner changed from anonymous to westi
- Status changed from new to assigned
See also #4209.
Sounds like a good idea.
How about a patch for default / classic to make use of these for single pages :-)
#3
@
16 years ago
What about something for attachments too? But back/forth between the attachments of that post?
#4
@
16 years ago
I'll work on both of these items. I'm not as familiar with the attachments though. I'm sure by now the patch needs updated anyway to fit into trunk.
#5
@
16 years ago
Updated patch to fit into trunk and added the new functionality to the default and classic themes.
#6
@
16 years ago
Ok.
I think it may be better to use the wp_head action rather than hardcode in the themes.
That way all themes get this functionality.
Implement it the same way as rsd_link and wlwmanifest_link.
#7
follow-up:
↓ 9
@
16 years ago
#9131 has been marked as a duplicate of this bug.
(Why can't TRAC say that automatically here, like Bugzilla?)
#11
@
16 years ago
Support for the following link types:
index
start
prev
next
Hooking into wp_head to display these links. Still looking into adding 'toc' which points to the archive, and 'up' which points to a parent.
#12
@
16 years ago
new patch (8703.5.diff) which includes 'up'. I have decided to not include 'toc' for the time being.
#13
@
16 years ago
From my conversation with westi, I have replaced the SQL in get_boundary_post with get_posts. New patch is 8703.6.diff
Would anyone like to comment on the changes proposed in this ticket? Anyone think this is a good idea to add?