WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. kieranmcclung
    Member
    Posted 11 months ago #

    Hello,

    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.

    http://wordpress.org/plugins/user-submitted-posts/

  2. adamt19
    Member
    Posted 11 months ago #

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

  3. downFast
    Member
    Posted 11 months 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. kieranmcclung
    Member
    Posted 11 months 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
    Member
    Posted 11 months 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:
    usp_createPublicSubmission
    usp_checkForPublicSubmission
    (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
    Member
    Plugin Author

    Posted 9 months ago #

    Awesome, alpha1beta -- thank you for sharing :)

Reply

You must log in to post.

About this Plugin

About this Topic