Viewing 7 replies - 1 through 7 (of 7 total)
  • Yes, you have to modify line 45 of carousel-horizontal-posts-content-slider.php

    with

    $slider_gallery.= 'post_title . '">'.attachment_image_filter($post->ID, 'thumbnail', 'title="' . $post->post_title . '"').'';

    Hi, I’m really liking this plug in. I need to image to link as well, however when I put the PHP code in, I get a Server 500 error. Is there a syntax issue perhaps? Thanks for your great work.

    Here’s part of the code `$slider_gallery.= ‘<div id=”foo_content”>’;

    if($displayimage==”YES”){

    $slider_gallery.= attachment_image_filter($post->ID, ‘thumbnail’, ‘alt=”‘ . $post->post_title . ‘”‘);
    //$slider_gallery.= ‘post_title . ‘”>’.attachment_image_filter($post->ID, ‘thumbnail’, ‘title=”‘ . $post->post_title . ‘”‘).”;`

    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

    Works perfectly, thank you very much!

    i m new to wordpress i want to use this plugin on my site but unable to know that how can we add images to slider??

    Plugin Author subhansanjaya

    (@subhansanjaya)

    Hi,
    You need to set featured image for each post in order to display images. Please, have a look at the following URL.

    http://codex.wordpress.org/Post_Thumbnails

    Thank you.

    Plugin Author subhansanjaya

    (@subhansanjaya)

    resolved

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘I want the image to link to post’ is closed to new replies.