Hello everyone!
I'm making my first theme for Wordpress and actually also using Wordpress for the first time. I've come as far as to when I want to fetch to comments to a specific post and show them.
I've looked at the default themes's comments.php and I believe I'm doing what it does to get the comments but for some reason a post that I've got that has 1 comment does not show any comments. I get the "Sorry, no posts matched your criteria." when viewing that post.
The code I've done to fetch the comments: http://pastebin.com/500510
This code is inside the loop. I've not created or added anything to the $comments variable but in the "default" theme's comments.php it doesn't seem to be any creation or adding to the $comments variable either, so I thought that wordpress creats the $comments variable internally.
Can anyone tell me what I'm doing wrong, or what I'm missing?
Thanks in advance!