• I am using Creativix theme with a slideshow that incorporates Title and excerpt of designated posts. I am trying to replace the excerpt with the_content so that it will show paragraphs and formatting.

    I was able to make this change on my blog using the advice in this post:
    http://wordpress.org/support/topic/how-to-incorporate-formatlinks-into-blog?replies=2#post-4097559

    However, it did not work when I applied the same fix on my home page which also uses the excerpt tag for ‘featured posts’.

    The relevant code from tpl_home.php looks like this:

    <?php
    
    						foreach( $wpcx_myposts as $post ) :	setup_postdata($post);
    
    							$wpcx_slideshow_title = get_the_title();
    
    							$wpcx_slideshow_text = wpcx_cut_text(get_the_excerpt(), 290);
    
    							$wpcx_thumb_big = wpcx_get_wp_generated_thumb("slideshow");
    
    							if(empty($wpcx_thumb_big)) {
    
    								$wpcx_thumb_big = get_template_directory_uri()."/images/default_slideshow.jpg";
    
    							}
    
    							?>
    
    								<li><img src="<?php echo $wpcx_thumb_big;?>" alt="<?php the_title();?>" /><div class="slide_text"><h1><a href="<?php the_permalink();?>"><?php the_title();?>
    
    /* Removed <span> Date, Time, and Comment from slideshow text wrapper*/
    
    <p><?php echo $wpcx_slideshow_text;?></p><a href="<?php the_permalink();?>">read more</a></div></li>
    
    							<?php 
    
    						endforeach;
    
    					?>

    I tried to replace ‘excerpt’ with ‘content’ in all relevant areas but it didn’t work. Is the custom_excerpt a specially designed function that I need to find/edit elsewhere?

    Or can I override with a conditional tag?

    I am trying to avoid editing the functions.php as I am still an amateur.

    Any help would be greatly appreciated.

    site: http://www.aluralegal.com

The topic ‘Replacing excerpt with post content’ is closed to new replies.