WordPress.org

Support

Choose image to be displayed

Viewing 1 replies (of 1 total)
  • Plugin Author subhansanjaya

    @subhansanjaya

    Please, use this code in carousel-horizontal-posts-content-sldier.php file line #44- 53. This will only select featured post image.

    $post_link =  get_permalink($post->ID);
    
    if($displayimage=="YES"){
    
    			 if (has_post_thumbnail( $post->ID ) ):
    			$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
    			endif;
    			$featured_img = "<img width='115' height='115' src='". $image[0] . "' " . $attributes . " />";
    			$slider_gallery.= '<a href="'.$post_link.'">'.$featured_img.'</a>';
    		}

    I hope this will help you.
    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Choose image to be displayed’ is closed to new replies.
Skip to toolbar