Last active
December 17, 2015 21:49
-
-
Save rodica-andronache/5677680 to your computer and use it in GitHub Desktop.
WORDPRESS - Afisare formular prin care utilizatorul poate adauga un comentariu la un post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$comments_args = array( | |
// change the title of send button | |
'label_submit'=>'Submit', | |
'comment_notes_before' => '', | |
// remove "Text or HTML to be displayed after the set of comment fields" | |
'comment_notes_after' => '', | |
// redefine your own textarea (the comment body) | |
'comment_field' => '<textarea id="comment" name="comment"></textarea>', | |
'fields' => array( | |
'author' => '<div class="fields"><p>' . '<input class="field" id="author" name="author" type="text" value="" /> '. '<label for="author">' . __( 'Name (required)', 'vertiMagazine' ) . '</label> ' . '</p>', | |
'email' => '<p>'.'<input class="field" id="email" name="email" type="text" value="" />'.'<label for="email">' . __( 'Email (required)', 'vertiMagazine' ) . '</label> ' . '</p>', | |
'url' => '<p>'.'<input class="field" id="url" name="url" type="text" value="" />'.'<label for="url">' . __( 'URL', 'vertiMagazine' ) . '</label>' . '</p></div>', | |
), | |
); | |
comment_form($comments_args); | |
!!!Daca sunt logata ca admin, cand testez, n-o sa apara ok. Ca sa vad exact cum se vede, trebuie sa nu fiu logata. | |
!!! Trebuie neaparat ca inputurile de la fields sa aibe numele 'author' , 'email' si 'url' si textarea sa aiba numele 'comment' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment