1. Home
  2. Docs
  3. Responsive Posts Carousel
  4. Developers
  5. Display slider under each post

Display slider under each post

You can display the slider under each post by pasting the following code in your Theme’s functions.php file. (Change slider ID as per your carousel ID)

function rpc_render_after_post_content() {    
    if( is_single() ) {
        echo do_shortcode( '[wcp-carousel id=1609]' );
add_action( 'the_content', 'rpc_render_after_post_content' );

Please make sure to Disable Current Post from Advanced options, this way the current post will not be visible in the shortcode.