Hi to all,
I'm trying to add 2 custom fields under default name/mail/web fields.
But cannot get it to work, and it doesn't seems to be documented for Thematic.
Most tricks are online but nothing is working for Thematic (or I'm not able to get them working).
I've also tried some plugins but nothing 100% working.
My last and more probant grab and mod is, for functions.php:
function thematic_add_custom_fields($fields) {
// Add a thematic-style field for the commenter location
$fields['location'] = '<div id="form-section-location">';
$fields['location'] .= '<div><label for="location">' . __( 'Location' ) . '</label></div>';
$fields['location'] .= '<div><input id="location" name="location" type="text" size="30" /></div>';
$fields['location'] .= '</div>';
return $fields;
}
add_filter( 'thematic_form_default_fields', 'thematic_add_custom_fields' );
Without any success…
Alternatively, how to cut out the "website" field?
Many thanks for help.
EDIT: of course, data for the new fields must be db stored, and displayed on front end…