WordPress.org

Ready to get started?Download WordPress

Forums

WP-AutoYoutube
Custom Post Type (3 posts)

  1. Gonzogoose
    Member
    Posted 1 year ago #

    The plugin works fine so far, but I was wondering if it was possible to get it to work with a custom post type as opposed to just appearing in and working for the general post type?

    Thanks!

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

  2. missyklotz
    Member
    Posted 1 year ago #

    Looking for help on this as well...

  3. missyklotz
    Member
    Posted 1 year ago #

    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
    );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic