User Submitted Posts
[resolved] Custom Post Type (9 posts)

  1. kallekillen
    Posted 2 years ago #

    Hi there,

    I emailed as well, but thought I'd open a topic here also in case you check this more often.

    How would I go about customising this plugin to work with a custom post type?

    Any help would be appreciated!


  2. shanparker
    Posted 2 years ago #

    I came here to post about this too! My theme has "posts" and "photographs", and I just need the plugin to post to "photographs" but by default it's going to "posts". This plugin is the closest to what I need except that one issue.

  3. mmergola
    Posted 2 years ago #

    Looking for the same answer. Hoping we get a response.

  4. mguges
    Posted 2 years ago #

    I added an additional plug in that made it work:


  5. Jeff Starr
    Plugin Author

    Posted 1 year ago #

    Sorry for the long delay in responding to this thread.. the free version of the plugin is not designed to support custom post types, but it's a planned feature for the upcoming Pro version of the plugin.

  6. cczeslaww
    Posted 1 year ago #

    To achieve such functionality (not incredible, but rather effective way), it's enough to add adequate field to associative array, that is built at lines 297-302 of file 'user-submitted-posts.php'. I'm not sure if this solution is always as accurate as in my problem, but for me works perfectly :)

  7. Gretchen Louise
    Posted 1 year ago #

    @cczeslaww Could you share what code you added to specify a custom post type? That is what I would like to use this plugin for as well. Thank you.

  8. cczeslaww
    Posted 1 year ago #

    Definition of $postData in my code looks following:

    $postData = array();
    $postData['post_title']   = $title;
    $postData['post_content'] = $content;
    $postData['post_status']  = 'pending';
    $postData['post_author']  = $authorID;
    $postData['post_type']  = 'link'; // here we add a custom field to array $postData
  9. Gretchen Louise
    Posted 1 year ago #

    @cczeslaww Thank you! That's what I added, but it's not submitting posts of a custom type. I just wanted to make sure I was doing it the same way you did. I am using the Types plugin, which I suppose could use slightly different codes. Thanks for your help, though!

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


No tags yet.