• Hi,

    in file meteor-slides-plugin.php is function meteorslides_featured_image_array() with bad bug.

    When is post thumbnails enabled for all custom post types, by this plugin you redisabled it.


    elseif ( true === $_wp_theme_features['post-thumbnails'] ) {

    $_wp_theme_features['post-thumbnails'] = array( array( 'post','page', 'slide' ) );

    }

    You must add condition to check, if $_wp_theme_features[‘post-thumbnails’] is array, because, when is global enabled for all custom post types, data type is integer/bool

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Josh Leuze

    (@jleuze)

    Hi Adorei, thanks for the info. I will be changing how Meteor Slides enables featured images in the next version to improve compatibility with other custom post types.

    With the current version, to enable featured images in other custom post types, they can be specified in an array, check out the FAQ for details.

    Thread Starter Radovan Smitala

    (@adorei)

    Hi,

    This is great 🙂

    Do you think about using external template file ? Like meteor-slides.php in theme directory. Only if this file exists you include it. Because I want to add heading title and anchor link. I must edit whole plugin file.

    I thinks when there be external template file, this will be more flexible.

    Thank you.

    Adorei

    Plugin Author Josh Leuze

    (@jleuze)

    That’s a good idea. You can copy meteor-slideshow.php to your theme and customize that. Then you just need to create a new template tag in your theme’s functions.php file like this:

    // Adds function to load slideshow in theme
    
    function custom_slideshow($slideshow=NULL, $metadata=NULL) {
    
    	include( 'meteor-slideshow.php' );
    
    }

    Then you will be able to use that custom_slideshow template tag in your theme to add your custom sildeshow loop.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Meteor Slides disabling thumbnails for custom post types’ is closed to new replies.