I am using Dzonia Lite theme in my website. My front page shows all the latest posts. I am getting an excerpt at the end of each post.
Could anyone suggest me how to remove that excerpt at the end of the post.
Below is the code that I have in my template file
<div class="post_content">
<?php if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) { ?>
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('post_thumbnail', array('class' => 'postimg')); ?>
</a>
<?php } else {
?>
<a href="<?php the_permalink() ?>"><?php echo inkthemes_main_image(); ?></a>
<?php
}
?>
<?php the_excerpt(); ?>
<div class="clear"></div>
<?php wp_link_pages(array('before' => '<div class="page-link"><span>' . 'Pages:' . '</span>', 'after' => '</div>')); ?>
<?php edit_post_link('Edit', '', ''); ?>
</div>
<a href="<?php the_permalink() ?>" class="continue"><?php _e('Continue reading →', 'dzonia'); ?></a>
<div class="tags">
<?php the_tags('Post Tagged with ', ', ', ''); ?>
</div>
</div>
You just need to replace this line:
With this line:
That should insert your post’s content instead of an excerpt.
If you want just a read more link instead, replace
<?php the_excerpt(); ?>
with:This will create the same link as the image, just with text.