How can I use different comments.php pages?
-
Personally I’d try using comments.php as a controlling file with all of the conditional statements and conditional includes.
Thanks Esmi, what I want to do is make 2 different pages for a french + an english version of comments section, can I do this on comments.php page, does the page contain all english I want to translate? (number of comments, presentation of comments, post a comment form)
does the page contain all english I want to translate?
It varies from theme to theme but, in theory, yes it should.
All right, I made the changes in the comments.php page with a if condition, works fine.
I had to remove the “says:” in the comments-template.php page, I still need to erase “at” between each comment date and time.Is there a simple way not to indicate the hour (but I need the date) for comments?
Sorry for my english, I mean “time”, not “hour” 😉
I can delete time in the admin, putting an empty custom box for time, but “at” still displays, how can I get rid of it or change it?
What is the page to make this correction please?If your comments.php file use wp_list_comments, the only way to do this is to create a custom callback function to display your comments.
aouch 😉
Is there an easy way to understand how I can do this?
Thanks againhttp://www.problogdesign.com/wordpress/advanced-wordpress-comment-styles-and-tricks/
is a tutorial I borrow from to do stuff with my comments (it discussed custom callback functions)
Maybe its of some use?
Thanks a lot Rvoodoo (nice nick ;), I’ll have a look.
The topic ‘How can I use different comments.php pages?’ is closed to new replies.
(@tomasi514)
15 years, 11 months ago
I want to use different comments.php pages depending on pages.
We normally insert
<?php comments_template(); ?>to show comments, when I try<?php include (TEMPLATEPATH . '/comments.php'); ?>, it does not show comments (it only displays form to add a new comment.What did I do wrong here?