Viewing 2 replies - 1 through 2 (of 2 total)
  • Looking for help on this as well…

    In wp-autoyoutube.php add this line to $my_post = array:

    'post_type' => 'CUSTOMPOSTNAMEHERE'

    example:
    $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' => 'CUSTOMPOSTNAMEHERE' // Use a custom post type
    );

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