Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I need help.
- Please [check this code][1]
- This is the snapshot of what the form look like now.
- ![Snapshot][2]
- I would like to add some extra fields under the description form.
- I think i need to edit the_question_form() function in this [file][3].
- I need to add some extra fields below this textarea.
- line number 375.
- <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.
- PS: This is a page in my theme where user submit their content, NOT admin area.
- [1]: http://pastebin.com/THbfSZj2
- [2]: http://i.stack.imgur.com/I0Hhz.jpg
- [3]: http://pastebin.com/THbfSZj2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement