goldenapples / recommended-links

a plugin to add a reddit-style system of link sharing, commenting, and rating to WordPress
http://goldenapplesdesign.com/projects/recommended-links-plugin-for-wordpress/
23 stars 0 forks source link

Faulty comment link? #6

Closed imaque closed 12 years ago

imaque commented 12 years ago

So, with the theme that I use (http://www.lightworddesign.org/), when looking at http://site.com/reclinks, it shows up something like this:

Link Title (along with actual-link) Posted by - poster-name

filed under: category Other-comments-link.

The issue that shows up for me is that the other-comments-link links to actual-link#comments instead of the comments/no-comments-yet#comments, if that makes sense?

Thanks!

goldenapples commented 12 years ago

I am going to call that a theme issue; themes should use the function comments_link() to get a link to a post's comments, not the_permalink().

Its kinda difficult to come up with best practices for an area like this, but my feeling was to follow the method used by similar plugins like 'Page Links To' or 'FeedWordPress' and filter the function the_permalink() to return the non-local link, rather than the local post permalink. To get the local permalink, get_permalink() or comments_link() will work.