Opened 4 years ago
Last modified 3 years ago
#10180 reopened enhancement
Add rel="prev" to previous_posts_link() and rel="next" to next_posts_link()
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Template | Version: | |
| Severity: | normal | Keywords: | has-patch, needs-testing |
| Cc: | dkikizas@… |
Description
Putting proper rel values on archive next/previous links is actually not even properly possible with a plugin, so I had to use a patch
http://gist.github.com/120586
Really this should (IMHO) all go into core
Attachments (1)
Change History (13)
- Keywords close added
- Milestone changed from Unassigned to 2.8.1
this seems very invalid to me
- Keywords close removed
#8703 added next/prev/home for single browsing, But not for archive browsing.
/archive/2009/05/ should have a next for /archives/2009/06/ etc.
I'm pretty sure thats what this ticket is asking for.
- Keywords needs-patch added
- Milestone changed from 2.8.1 to 2.9
- Type changed from defect (bug) to enhancement
- Component changed from General to Template
- Resolution set to duplicate
- Status changed from new to closed
- Resolution duplicate deleted
- Status changed from closed to reopened
- Summary changed from rel=prev/next to Add rel="prev" to previous_posts_link() and rel="next" to next_posts_link()
I guess I should really pay more attention to things. #4209 and this cover different things (previous_post_link() vs previous_posts_link() and the next equivalents). I'm reopening and I'll have a patch soon.
This is my first go at adding in the rel="next" and rel="prev". There is probably a better/faster way of doing this.
comment:10
miqrogroove — 3 years ago
This needs to hit similar functions such as previous_image_link() and next_image_link()
comment:11
ryan — 3 years ago
- Milestone changed from 2.9 to Future Release

What version is this patch against?
See: http://core.trac.wordpress.org/ticket/8703