How to create custom fields in Q&A?
-
Hey Guys,
I need help.
Q&A is really a wonderful plugin.(Thanks to Authors π )
I would like to add some extra fields under the description form.I think i need to edit the_question_form() function in template-tags.php.
I need to add some extra fields below this textarea.
<textarea name="question_content"><?php echo esc_textarea( $question->post_content ); ?></textarea>I want to add a custom image upload button below that textarea. I added enctype=”multipart/form-data” tag in the form. I also added this code.
<input type="file" name="image">Now can anyone tell me how to store this image file in the database and how to retrieve it in the content page?
Please i’m really in need of help. So i appreciate everyone who try to help me. Thanks everyone.
The topic ‘How to create custom fields in Q&A?’ is closed to new replies.