I'm trying to clean up my blog by only displaying comments when a user specifically wants to - as in they click on the "view comments" URL.
I've formatting my posts normally, and at the end I have a link to display comments, using the comments_link() function. The comments_link() function seems to take the post and append a "/#comments" to the posts permalink URL.
What I would like to do is analyze the URL to see if the "/#comments" is in the URL, and if so then I would call my custom action to display the comments, otherwise I will post a comments_link asking the user if he wants to post the comment. If there is any other flag built into WP for determining whether the user clicked on the comments link, that would be preferable as well.
The only problem is, I'm not sure how to analyze the URL to determine if they clicked on the comments link. Any help is appreciated, thanks.