Assign Custom Post Type to WP-AutoYoutube posts
-
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”
- The topic ‘Assign Custom Post Type to WP-AutoYoutube posts’ is closed to new replies.