Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ZeroGravity

    (@zerogravity)

    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 ‘[Plugin: Recent Posts Slider] Outputs image when one doesn't exist’ is closed to new replies.