I am working on a Wordpress site that has a custom front-end form for submitting posts. I need to add a field in the form to allow users upload a single PDF file along with the post. How can I achieve this?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
I have done a simple function for that, but i allow all types of media. So this could be a start:
and then a input like: You can retrive the meta like this:
|
|||||||||
|