• Hello,
    add_filter( ‘slick_slider_html’, ‘slick_slider_clone_slider’, 10, 2 );
    function slick_slider_clone_slider( $output, $post_id ) {
    remove_filter( ‘slick_slider_html’, ‘slick_slider_clone_slider’ );
    $atts = array_merge(
    get_post_gallery( $post_id, false ),
    [
    ‘size’ => ‘thumbnail’,
    ‘sl_fade’ => ‘false’,
    ‘sl_focusonselect’ => ‘true’,
    ‘sl_asnavfor’ => ‘#slick-slider-1’,
    ‘sl_slidestoshow’ => 4,
    ]
    );
    $atts_string = ”;
    foreach ( $atts as $key => $value ) {
    if ( ‘src’ === $key ) {
    continue;
    }
    $atts_string .= ” $key=$value”;
    };
    $output .= do_shortcode( ‘[gallery’ . $atts_string . ‘]’ );
    return $output;
    };
    `
    I have inserted the above code into functions.php file that it does not work, please help me

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Thumbnail not show’ is closed to new replies.