Problem with comments_link()
-
I’m trying to use comments_link() to create a link to my comments page.
In my index.php everything works fine, but if I use wp.php then the link still points towards the index.php comments page.
The docs say the function has this parameter:
“file name, in case you want to use a different template for comments (default is the current template)”
But when I specify a different filename, i.e. comments_link(“wp.php”) it does not make any difference. The link still points to the index.php comments page.
So… are the docs wrong, or am I stupid? And if the docs are wrong, how can I achieve what I am trying to achieve (i.e. a link to the comments page without changing to the index.php template).
Thanks for any help.
The topic ‘Problem with comments_link()’ is closed to new replies.