• Resolved Wayne

    (@waynep16)


    At the moment it’s applying to all post types! I want to do as your plugin title suggests and conditionally see this… Eg I don’t want this available for pages , only certain post types

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author cyrillbolliger

    (@cyrillbolliger)

    Hi Wayne,

    Thanks for your comment. At the moment it is not planned to add a settings panel, which lets you select, to which post types the plugin applies. However, if this feature is also requested by others, I will maybe add it some time later.

    Plugin Author cyrillbolliger

    (@cyrillbolliger)

    Hi Wayne,

    I just released a new version of the plugin in response to your feature request. Just update the plugin to the latest version and add the following snipped to your functions.php and the plugin will be limited to posts only:

    
    function enable_conditionally_featured_image_plugin_by_post_type( $post_type ) {
        return 'post' === $post_type;
    }
    add_filter( 'cybocfi_post_type', 'enable_conditionally_featured_image_plugin_by_post_type' );
    

    I recommend you to also have a look at the FAQ.

    Enjoy.
    Cyrill

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to configure which posts types this option is available on ?’ is closed to new replies.