• Resolved missyklotz

    (@missyklotz)


    I’m using your plugin and would like to assign it to custom post type named “auto_post” – I’ve already set this custom post type up and it’s working properly on its own, how can I configure the posts created from WP-AutoYouTube to be assigned to this custom post type? I added: 

          'post_type' => $_POST['auto_post']

    to

       `$my_post = array(
          ‘post_title’ => $v[‘title’],
          ‘post_content’ => $content,
          ‘post_category’ => array($autoyoutube[‘category’]),
          ‘tags_input’ => ($autoyoutube[‘tags’] == 1 ? $v[‘tags’] : ”),
          ‘post_status’ => $autoyoutube[‘status’],
          ‘post_type’ => $_POST[‘auto_post’]  // Use a custom post type
       ); `

    The posts aren’t showing in my Auto Posts section and when I go to Posts > Auto YouTube the only option under the post is “Import”

    http://wordpress.org/plugins/wp-autoyoutube/

Viewing 1 replies (of 1 total)
  • Thread Starter missyklotz

    (@missyklotz)

    The developer responded to my email, the line to add to the above code in wp-autoyoutube.php should be:

    'post_type' => 'CUSTOMPOSTNAMEHERE'

Viewing 1 replies (of 1 total)
  • The topic ‘Assign Custom Post Type to WP-AutoYoutube posts’ is closed to new replies.