WordPress.org

Ready to get started?Download WordPress

Forums

Featured Video Plus
FVP on Portfolio Posts (3 posts)

  1. Ruzgar Dogu
    Member
    Posted 3 weeks ago #

    I am using FVP without any problem. But when i set a new portfolio, FVP box doesn't show up.

    Nothing is wrong on Pages and Posts. But i want to use it on portfolio posts. But FVP box is missing.

    WP Template is Grafika.

    Thank you.

    https://wordpress.org/plugins/featured-video-plus/

  2. Ruzgar Dogu
    Member
    Posted 3 weeks ago #

    I tried this code on theme's Functions.php.

    /*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( 'postimagediv', 'portfolio', 'side' );
    }
    function add_meta_boxes() {
        /* Add FVP to PORTFOLIO */
        add_meta_box( 'featured_video_plus-box', 'portfolio', 'side' );
    }

    First part (Removing Featured Image) worked like charm.
    But the second part, where i wanted to add Featured Video Plus metabox, did not work at all.

    Any suggestions?

  3. Ruzgar Dogu
    Member
    Posted 3 weeks ago #

    I found a solution from another thread.

    http://wordpress.org/support/topic/custom-post-types-query?replies=2#post-5757318

    @Anton Timmermans

    On line 89 of the file php/backend.php there is the following line:
    $post_types = get_post_types(array("public" => true));

    This means our post types don't get a custom meta box. Could you change this to:
    $post_types = get_post_types(array("show_ui" => true));

    It worked very well.

Reply

You must log in to post.

About this Plugin

About this Topic