WP List Comments without a comments template
-
After running theme check form my theme admin I found these two errors:
WARNING: could not find the file comments.php in the theme.
REQUIRED: Could not find wp_list_comments. See: wp_list_comments
REQUIRED: Could not find comment_form. See: comment_formIs there any way to build a theme without these two calls? I am trying to build a theme with two files, “index and style.” so far I had to give in and create a functions.php so that is three files. Now I am really mad because after research, I find you can not build a theme without the above calla. In short, a comments.php is required.
I can add a(nother) file but it is the whole idea of the fact that WP says ” the only two files you really need are….” So here I sit broken hearted and am hoping someone knows a workaround.
I tried using wp_list_comments directly into index.php and also tried a comments function in functions.php. Also tried calling a conditional loop with if (comments()) and called wp_list_comments in one condition and comments_template in the other.
Prove me wrong because WP says you ONLY NEED TWO FILES to create a theme. I am determined to do this but only to see if it is possible. Currently it seems it is not. Therefore WP needs to retract their statement or remove wp_list_comments from the requirements of a theme build.
- The topic ‘WP List Comments without a comments template’ is closed to new replies.