WordPress.org

Ready to get started?Download WordPress

Forums

Featured Video Plus
[resolved] Using Custom Post Type (7 posts)

  1. lonchbox
    Member
    Posted 12 months ago #

    Thanx for this plugin, it resolve very well this necesities.

    But, how can I activate the use featured video in a custom post type?, it´s possible?

    http://wordpress.org/extend/plugins/featured-video-plus/

  2. martinjesus
    Member
    Posted 11 months ago #

    Hi there,

    I will be also interested in this functionality!

    Anyone knows how to implement it?

    Thanks in advance!

    Jesús

  3. lonchbox
    Member
    Posted 9 months ago #

    @martinjesus I it works, don´t need anything.

    Now I´m wondering if I can remove the video metabox from normal post and just keep it in selected Custom Post Types.

  4. lonchbox
    Member
    Posted 8 months ago #

    Hi,

    I found a way, is not part of the plugin but is a hack inside the theme to remove the Featured Video Metabox for specific CPTs using add_meta_boxes action.

    use this code:

    /*Remove metaboxs from CPTs*/
    add_action( 'add_meta_boxes', 'custom_remove_meta_boxes' );
    function custom_remove_meta_boxes() {
        /* MY_CPT */
        remove_meta_box( 'featured_video_plus-box', 'MY_CPT', 'side' );
        /* page */
        remove_meta_box( 'featured_video_plus-box', 'page', 'side' );
        /* post */
        remove_meta_box( 'featured_video_plus-box', 'post', 'side' );
    }

    Hope it helps.

  5. Alexander Hoereth
    Member
    Plugin Author

    Posted 8 months ago #

    Will consider this for a future version. Have to look into which settings are actually required because they already got quite bloated.. Is this resolved for the moment?

  6. lonchbox
    Member
    Posted 8 months ago #

    yes, that hack resolve my needs.

    Maybe you can add this settings in the settings -> writing to choos the CPTs to use the featured videp plus box.

    Thanx in advance.

  7. Ruzgar Dogu
    Member
    Posted 1 week ago #

    @lonchbox

    I tried your code, and succeeded in removing meta boxes on both pages and posts.

    /*Add or Remove metaboxs from Custom Post Types*/
    add_action( 'add_meta_boxes', 'custom_remove_meta_boxes' );
    function custom_remove_meta_boxes() {
        /* Remove Featured Image / PORTFOLIO */
        remove_meta_box( 'featured_video_plus-box', 'post', 'side' );
    }
    function add_meta_boxes() {
        /* Add FVP to PORTFOLIO */
        add_meta_box( 'featured_video_plus-box', 'portfolio', 'side' );
    }

    But unfortunately, FVP does not show up on "Portfolio" custom post type. Meaning, second part of the code

    function add_meta_boxes() {
        /* Add FVP to PORTFOLIO */
        add_meta_box( 'featured_video_plus-box', 'portfolio', 'side' );
    }

    does not work. Probably because the core functions does not recognize 'featured_video_plus-box' reference. Do you have any idea how to enable FVP on Custom Post Type.

    Sorry that i had to write here, i already started a new thread, but no replies since.

    Thanks.

Reply

You must log in to post.

About this Plugin

About this Topic