[wp-trac] [WordPress Trac] #18660: Enhance rel_canonical function, add filter

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 15 10:05:19 UTC 2011


#18660: Enhance rel_canonical function, add filter
-------------------------------------------------+-------------------------
 Reporter:  nathanrice                           |       Owner:
     Type:  enhancement                          |  joostdevalk
 Priority:  normal                               |      Status:  assigned
Component:  Canonical                            |   Milestone:  Awaiting
 Severity:  normal                               |  Review
 Keywords:  has-patch needs-testing 2nd-opinion  |     Version:  3.3
                                                 |  Resolution:
-------------------------------------------------+-------------------------
Changes (by sirzooro):

 * cc: sirzooro (added)


Comment:

 joostdevalk,
 Please take a look on my plugin, [http://wordpress.org/extend/plugins
 /meta-seo-pack/ Meta SEO Pack] - in particular
 `MetaSeoPack:::get_canonical()` method. It generates canonical URL for all
 WP pages, including multi-paged content (this is a bit tricky area). I
 haven't updated if for a while so some updates will be needed there (in
 particular use `get_search_link()` for search results page and add support
 for custom post types if needed). It should give you few hints how to
 improve your patch.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18660#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list