Ready to get started?Download WordPress


WP Video Posts
2 questions about the plugin (2 posts)

  1. FolkertD
    Posted 1 year ago #

    Hi, looks like a great plugin, i have 2 questions hope you can answer.
    1. i already have a custom post type called 'videos' can i make the plugin use that for video?
    2. can i use JWplayer instead of flowplayer?


  2. AlexRayan
    Plugin Contributor

    Posted 1 year ago #

    Hi FolkertD,
    yes, you can use an existing post type "videos", but you gotta make sure that your registration call uses the same options as the plugin.
    Here's what the plugin uses:

    $labels = array(
                    'name' => _x('Videos', 'post type general name'),
                    'singular_name' => _x('Video Item', 'post type singular name'),
                    'add_new' => _x('Add New Video', 'video item'),
                    'add_new_item' => __('Add New Video Item'),
                    'edit_item' => __('Edit Video Item'),
                    'new_item' => __('New Video Item'),
                    'view_item' => __('View Video Item'),
                    'search_items' => __('Search Video'),
                    'not_found' =>  __('Nothing found'),
                    'not_found_in_trash' => __('Nothing found in Trash'),
                    'parent_item_colon' => ''
            $args = array(
                    'labels' => $labels,
                    'public' => true,
                    'publicly_queryable' => true,
                    'show_ui' => true,
                    'query_var' => true,
                    'menu_icon' => plugins_url('/images/', __FILE__) . 'videos_menu_icon.png',
                    //'rewrite' => true,
                    'rewrite' => array('slug'=>'videos'),
                    'capability_type' => 'post',
                    'hierarchical' => false,
                    'menu_position' => null,
                    'supports' => array('title','editor','thumbnail','comments','author','custom-fields'),
            register_post_type( 'videos' , $args );

    You would need to comment out this line in wpvp.php:
    register_post_type( 'videos' , $args );

    As for the other player instead of Flowplayer, that's possible as well, but it would require modifying the plugin core which would remove the possibility of upgrading in the future. We might consider different options for players, but it is in our TO-DO list for now since unfortunately we don't have as much free time to work on it as we would want to.

    Hope it answers your questions.

    Best regards,

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.