WordPress.org

Support

Support » Plugins and Hacks » Recent Posts Slider » [Resolved] [Plugin: Recent Posts Slider] Outputs image when one doesn't exist

[Resolved] [Plugin: Recent Posts Slider] Outputs image when one doesn't exist

Viewing 2 replies - 1 through 2 (of 2 total)
  • I found and fixed the problem. At line 859 I replaced

    if( !empty($post_details[$p]['post_first_img']['0']) || !empty($post_details[$p]['post_excerpt'])){
    
    	$rps_img_src_path = $upload_dir['baseurl'].$post_details[$p]['post_first_img']['0'];
    
    	$output .= '<a href="'.$post_details[$p]['post_permalink'].'"><img src="'.$rps_img_src_path.'" align="left" /></a>';
    
    	$output .= $post_details[$p]['post_excerpt'];
    
    }

    with

    if( !empty($post_details[$p]['post_first_img']['0'])){
    
    	$rps_img_src_path = $upload_dir['baseurl'].$post_details[$p]['post_first_img']['0'];
    
    	$output .= '<a href="'.$post_details[$p]['post_permalink'].'"><img src="'.$rps_img_src_path.'" align="left" /></a>';
    
    }
    
    if (!empty($post_details[$p]['post_excerpt'])) {
    
    	$output .= $post_details[$p]['post_excerpt'];
    
    }
    Plugin Author Neha

    @nehagoel

    Perfect.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Recent Posts Slider] Outputs image when one doesn't exist’ is closed to new replies.
Skip to toolbar