User Submitted Posts
[resolved] Adding extra post fields (6 posts)

  1. Kieran McClung
    Posted 2 years ago #


    Firstly this is a great little plugin and is working greatly, so many thanks for that. I am however wondering how to add extra fields to the post form? I've had a quick scan of the forum but couldn't find anything. I also checked the USP website and found the custom posts articles but this seemed to be talking about an older WordPress Version.

    Now I understand that all these fields are submitted as custom fields so is it a case of hacking the user-submitted-posts.php file and adding extra fields that way or is there an easier method?

    Any help would be greatly appreciated.

    Thank you.


  2. adamt19
    Posted 2 years ago #

    Did you find an answer to this? I want users to be able to provide their e-mail address...

  3. downFast
    Posted 2 years ago #

    Well if you really need a quick solution for your field such as ask for an email, you could give up of one of the current fields and just change the text into Email.

    e.g. Find in the plugin files where the form field says Post URL and change it to: Your email and remove the link format

  4. Kieran McClung
    Posted 2 years ago #

    What downFast said is probably the best bet for you, I unfortunately had to use another plugin as I needed quite a few extra fields and wanted them to feed into a custom fields search plugin I have.

  5. alpha1beta
    Posted 2 years ago #

    I have a custom forked version of this plugin, that has extra fields and works with Co-Authors-Plus.

    I'm pushing the code to github right now:https://github.com/alpha1/User-Submitted-Co-Authored-Posts

    Take a look into functions:
    (those are for handling a submission)
    usp_render_form is for adding fields(show/hide options).
    in usp_render_form i have commented my code with <!--Added-->

    I would love to help the author improve this plugin and create hooks to help this kind of development, but either way I'll be happy to help more with this. If the author is not interested, i'll provide my own updates and a real fork.

  6. Jeff Starr
    Plugin Author

    Posted 2 years ago #

    Awesome, alpha1beta -- thank you for sharing :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • User Submitted Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic