Is there a way to display the comment field first and then the Name / Email / Website fields? I am using
<?php comment_form( ); ?>
in my theme. I am not looking for a CSS solution.
|
Is there a way to display the comment field first and then the Name / Email / Website fields? I am using
in my theme. I am not looking for a CSS solution. |
|||
|
|
|
Some loose implementation of where I would start. The hooks |
|||
|
|
|
Whilst this might not be the most advisable Wordpress way to do it, I could find no other solution. I went digging for the place where the actual comment form is rendered. I found it in:
Search for:
This is the function which creates the comment form, and applies all of the filters you might set. So, I just went ahead and copied that function to my theme functions.php and renamed it to something different like:
Then in my template I call With my own function I'm able to switch the fields around however I want them. The more I played with Anyway, that's a possible solution, no idea if it would end up breaking something but I think it's fairly sound and I'm going to run with it! |
|||
|
|
|
You Should change the line wp_list_comments to this:
This could also be controlled from: Administration > Settings > Discussion |
|||
|
|