Change this to full content?
-
Hi. I am new to wordpress, and I love this one theme, but it blog style doesn’t show full content of the recent post. Can anyone help me instead of display few line of code in the latest post into full content article?
I found the code here
function _latest_posts3 ( $options ) { $element_size = zn_get_size( $options['_sizer'] ); ?> <div class="<?php echo $element_size['sizer'];?>"> <div class=" latest_posts style2"> <h3 class="m_title"><?php echo $options['lp_title'];?></h3> <?php if ( !empty( $options['lp_blog_page'] ) ) { echo '<a href="'.$options['lp_blog_page'].'" class="viewall">'. __("VIEW ALL",THEMENAME).' -</a>'; } ?> <ul class="posts"> <?php global $post; // Check what categories were selected..if any if ( isset ( $options['lp_blog_categories'] ) ) { $blog_category = implode(',',$options['lp_blog_categories']); } else { $blog_category = ''; } // HOW MANY POSTS if ( isset ( $options['lp_num_posts'] ) ) { $num_posts = $options['lp_num_posts']; } else { $num_posts = '2'; } // Start the query query_posts( array ( 'posts_per_page' => $num_posts , 'cat' => $blog_category ) ); // GET THE NUMBER OF TOTAL POSTS RETURNED global $wp_query; // Start the loop while( have_posts() ){ the_post(); echo '<li class="post">'; echo '<div class="details">'; echo '<span class="date">'; the_time('d/m/Y'); echo '</span>'; echo '<span class="cat">'.__( 'in ', THEMENAME ); the_category(", "); echo '</span>'; echo '</div>'; // TITLE echo '<h4 class="title"><a href="'.get_permalink().'">'.get_the_title().'</a></h4>'; // TEXT echo '<div class="text">'; $excerpt = get_the_excerpt(); $excerpt = strip_shortcodes($excerpt); $excerpt = strip_tags($excerpt); $the_str = mb_substr($excerpt, 0, 350); echo $the_str.'...'; echo '</div>'; echo '</li>'; } wp_reset_query(); ?> </ul> </div><!-- end // latest posts style 2 --> </div> <?php }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Change this to full content?’ is closed to new replies.