Hi, I have this file that's truncating the title of the post at <?php truncate_title(27); ?> Code (markup): I need it to show the complete post title. Any help? <!-- Start Featured --> <div id="featured" class="clearfix"> <a href="#" id="left_arrow"><?php esc_html_e('Previous','Minimal') ?></a> <a href="#" id="right_arrow"><?php esc_html_e('Next','Minimal') ?></a> <!-- Featured Content --> <div id="featured_content"> <!-- Featured Articles --> <?php global $ids; $ids = array(); $arr = array(); $i=1; $width = 406; $height = 226; $featured_cat = get_option('minimal_feat_cat'); $featured_num = (int) get_option('minimal_featured_num'); if (get_option('minimal_use_pages') == 'false') query_posts("showposts=$featured_num&cat=".get_catId($featured_cat)); else { global $pages_number; if (get_option('minimal_feat_pages') <> '') $featured_num = count(get_option('minimal_feat_pages')); else $featured_num = $pages_number; query_posts(array ('post_type' => 'page', 'orderby' => 'menu_order', 'order' => 'ASC', 'post__in' => (array) get_option('minimal_feat_pages'), 'showposts' => $featured_num )); }; while (have_posts()) : the_post(); ?> <div class="slide"> <a href="<?php the_permalink();?>"> <?php $post_title = get_the_title(); $thumbnail = get_thumbnail($width,$height,'thumb',$post_title,$post_title); $thumb = $thumbnail["thumb"]; print_thumbnail($thumb, $thumbnail["use_timthumb"], $post_title, $width, $height, 'thumb'); ?> </a> <div class="description"> <h2><a href="<?php the_permalink();?>"><?php truncate_title(27); ?></a></h2> <?php $tagline = get_post_meta($post->ID, 'Tagline', true); if ($tagline != '' ) { ?> <p class="tagline">“<?php echo wp_kses( $tagline, array( 'span' => array() ) ); ?>”</p> <?php } ?> <p><?php truncate_post(375);?></p> <a href="<?php the_permalink();?>" class="readmore"><span><?php esc_html_e('Read More', 'Minimal');?></span></a> </div> <!-- end .description --> </div> <!-- end .slide --> <?php $ids[]= $post->ID; endwhile; wp_reset_query(); ?> </div> <!-- end #featured_content --> <!-- End Featured Articles --> <!-- Featured Menu --> <div id="controllers" class="clearfix"></div> <!-- End Featured Menu --> </div> <!-- end #featured --> <!-- End Featured Content --> <!-- End Featured --> Code (markup): Thank you!!!
Replace <?php truncate_title(27); ?> with <?php echo $post_title; ?> This is based on the code you just posted... Tell me if it works