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

    (@subhansanjaya)

    (Line #35-53 )
    Please, use this code –

    foreach( $myposts as $post ){
    
    		$post_title = $post->post_title;
    		$post_link =  get_permalink($post->ID);
    		$post_content = $post->post_content;
    		$displaydesc= $word_imit;
    
    		$slider_gallery.= '<div id="foo_content">';
    
    		if($displayimage=="YES"){
    			$slider_gallery.= '<a href="'.$post_link.'">'.attachment_image_filter($post->ID, 'thumbnail', 'alt="' . $post->post_title . '"').'</a>';
    		}
    		//$slider_gallery.= '<br/><h2>'.$post_title.'</h2><br/>';
    		//$slider_gallery.= '<p><span class="foo_con">'.tchpcs_clean($post_content, $displaydesc).'</span></p>...';
    
    		//$slider_gallery.= '<br/><span class="more"><a href="'.$post_link.'">read more</a></span>';
    		$slider_gallery.= '</div>';
    
    	}

    Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘Slider images going to urls’ is closed to new replies.