WordPress.org

Ready to get started?Download WordPress

Forums

Carousel Horizontal Posts Content Slider
Viewing Media Description instead of Post Excerpt (1 post)

  1. dbungard
    Member
    Posted 1 year ago #

    Im in carousel-horizontal-posts-content-slider.php
    I see

    $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"){
    
    			 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>';
    		}
    
    		$slider_gallery.= '<h2>'.$post_title.'</h2>';
    		$slider_gallery.= '<p><span class="foo_con">'.tchpcs_clean($post_content, $displaydesc).'</span></p>';
    
    		$slider_gallery.= '';
    		$slider_gallery.= '</div>';
    
    	}
    
    	$slider_gallery.='</div>';
    	$slider_gallery.='<div class="clearfix"></div>';
    	$slider_gallery.='<a class="prev" id="foo1_prev" href="#"><span>prev</span></a>';
    	$slider_gallery.='<a class="next" id="foo1_next" href="#"><span>next</span></a>';
    	$slider_gallery.='</div>';

    (already removed read more)

    How do I make the media description (which is HTML & perfect for what I need) viewable instead of the post excerpt?

    Thanks

    http://wordpress.org/extend/plugins/carousel-horizontal-posts-content-slider/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.