We're merging with GenerateBlocks! Learn more here.

Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support End the carousel loop with ‘More…’ Reply To: End the carousel loop with ‘More…’

#19766
elvin
Moderator

Hi Gary,

We can stop the loop by adding this PHP snippet.

add_filter( 'wpsp_carousel_args', function( $args ) {
    $args['infinite'] = false;

    return $args;
} );

I’ve tested this on my end to be sure it won’t cause errors. Let us know if it works for you.:)