Support » Plugin: User Submitted Posts » Custom Post Type

Viewing 8 replies - 1 through 8 (of 8 total)
  • 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.

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

    I added an additional plug in that made it work:

    Convert Post Types

    Plugin Author Jeff Starr


    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.

    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 🙂

    @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.

    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

    @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!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Custom Post Type’ is closed to new replies.