Make WordPress Core

Opened 7 years ago

Closed 6 years ago

#24375 closed enhancement (wontfix)

Enhancement for paginate_links(), Add rel="next" & rel="prev"

Reported by: megainfo Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: template Cc:


Hi all,

By cheking the code of paginate_links() to make new SEO enhancements for buddypress(check the buddypress trac

There is no filter in paginate_links or param to include attributs to a href links.

I suggest to wordpress team to add a filter (or directly a rel="next" rel="prev" attribut to the href with next and prev class).

For more information about SEO and Pagination, please check this video :


Attachments (2)

general-template.php.patch (1.1 KB) - added by megainfo 7 years ago.
Patch general-template.php
24375.diff (2.1 KB) - added by obenland 6 years ago.

Download all attachments as: .zip

Change History (7)

7 years ago

Patch general-template.php

#1 @SergeyBiryukov
7 years ago

  • Keywords has-patch added

#2 @nacin
7 years ago

  • Component changed from Template to General
  • Focuses template added

#3 @obenland
6 years ago

Related: #25336.

6 years ago

#4 @obenland
6 years ago

  • Milestone changed from Awaiting Review to Future Release

Updated patch.

#5 @obenland
6 years ago

  • Milestone Future Release deleted
  • Resolution set to wontfix
  • Status changed from new to closed

As noted in #25336:

Discussed the issue of rel attributes with ocean90 at #wcchh14 contributor day.

As joostdevalk pointed out, adding rel attributes doesn't necessarily help SEO. An article on the Official Google Webmaster Blog even suggests:

rel=”next” and rel=”prev” only need to be declared within the <head> section, not within the document <body>

Since we already do define these in the head section of applicable documents, this should not be necessary.

Note: See TracTickets for help on using tickets.