$content = get_the_content(); ?> <div class="blog-article"> <div class="col-md-3 blogarticle-image"> <img src="<?php echo $feat_image; ?> " class="img-responsive2" > </div> <div class="col-md-9 blogarticle-content"> <h6><?php the_title(); ?> </h6> <p><?php echo farmtoyou_excerpt_char($content, 200); ?> <a href="<?php echo get_permalink(); ?> "> <?php _e('Read more...', 'farmtoyou'); ?> </a></p> </div> </div> <?php } //reset the query wp_reset_query(); ?>
function farmtoyou_gridlist_cat_desc() { global $post; if (is_shop() || is_product_category() || is_product_tag() || is_product_taxonomy()) { echo farmtoyou_excerpt_char($post->post_excerpt, 180); echo '<a href="' . get_permalink() . '"> Read More... </a>'; } else { echo $post->post_excerpt; } }