can anyone pls help me how to write code for option pages for plugins in which it has to upload images and date to that particular image...actual idea is the logo of website has to change when date is changes as per system...
here...instead of uploading images from computer i have to upload from media gallery...wat changes i have to do <form method='POST' enctype='multipart/form-data' name='frmmain' action=''> Browse for Image (jpg): <input type="file" name="image_file" size="35"> <br> <input type="submit" value=" Upload File " name="action"> </form>
Your question is not clear, why do you want your logo to change every day? doesn't make sense. and you want to upload images from media, so wordpress already has that option. the code that you have written will give the option to upload image from the computer but what are you trying to do?, please elaborate.
ok , i am doing one plugin where for particular days the logo has to be change for example valentine day its on feb 14 so on this day my website logo should get change automatically
I think this is what you are tying to say https://forums.digitalpoint.com/threads/how-to-upload-a-file-in-wordpress.2637490/#post-18471106