WordPress.org

Forums

Featured Video Plus
Custom post types query (2 posts)

  1. Anton Timmermans
    Member
    Posted 1 year ago #

    Hi,

    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.

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

  2. Ruzgar Dogu
    Member
    Posted 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Featured Video Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic