Hello. I’m trying to insert images in my comments_popup_link, so under the entry won’t be written “Comment”, but some picture could be seen instead.
I’m hopeless in php, but using logic and this post, I managed to write this:
The problem is that TEMPLATEPATH creates absolute path (/home/public_html/…), so the path to images is absolute and of course images don’t appear. I’ve tried to use bloginfo('template_directory');, but php-code doesn’t work.
And the second problem: I don’t know how to display quantity of comments this way – like “Comments 5” with images: “IMG 5”
I’m not sure what you’re trying to do….you’re trying to replace the “Comments” link under each post with an image instead of text? That’s pretty easy to do – without all of that stuff you’ve put in there. Just replace the text with an image in the index.php file: