Ready to get started?Download WordPress


Featured Video Plus
Custom post types query (2 posts)

  1. Anton Timmermans
    Posted 9 months ago #


    I am using featured video plus to offer our client to add video's to custom post types. In our last release I changed the public property of the custom post types to false. The reason I did this was because we don't want to have rewrite rules for them or have them in the search and public manages this very quickly and cleanly. I then put show_ui on true so the client could still edit the custom post type.

    This had the negative side effect that the featured video plus setting wasn't displayed anymore, I searched in the plugin's code and found the location where it went wrong.

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

    Because that is more accurate to what you want to achieve.


  2. Ruzgar Dogu
    Posted 1 month ago #

    @Anton Timmermans

    I can't tell you how i am happy, now that i found this solution of yours.

    Thank you very much. I have been searching for two days now. But your code worked like charm. I am grateful.

    Thanks again.


You must log in to post.

About this Plugin

About this Topic