I’m currently developing a WordPress site/theme for a client.
He has a specific requirement to be able to add comments to an archive page – it actually needs to be a comment on the page itself, rather than the posts/products within that archive.
I effectively need a way to add comments.php to the bottom of archive.php, although I understand this won’t work because an archive page doesn’t have an ID for the comments to associate with.
Is there any way to give a category archive page an ID based on the category, and then hook the comments template into this ID for each archive?
Thanks so much in advance for any advice you can offer – it’s been a long process and this is the last bit remaining to finalise the project!
Unfortunately it would seem this isn’t directly possible, however for anyone who would like to do something similar, there is a third party comment solution called IntenseDebate which is suitable to be added to the archive pages.
If you use DISQUS, you can call the comments template using PHP to bypass WordPress checks and have comments on archives pages.