Title: Coding
Last modified: August 20, 2016

---

# Coding

 *  Resolved [BennoH](https://wordpress.org/support/users/bennoh/)
 * (@bennoh)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/coding-2/)
 * Hello, could somebody please advise me on how to change the following code to
   remove the ‘read more’ feature from the post? Many thanks for any help people
   can give!
 *     ```
       <?php while (have_posts()) : the_post(); ?>      
   
           <div class="post-entry clearfix">
               <?php if ( has_post_thumbnail() ) {  ?>
   
               <div class="post-entry-featured-image">
       			<a href="<?php the_permalink(' ') ?>" title="<?php the_title(); ?>" class="opacity"><?php the_post_thumbnail('post-image'); ?></a>
               </div>
               <!-- END post-entry-featured-image -->
   
           <div class="post-entry-content">
               	<h2><a href="<?php the_permalink(' ') ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
       					<?php the_news_excerpt('50','','','plain','no'); ?>
                           <a href="<?php the_permalink(' ') ?>" title="<?php the_title(); ?>" class="read-more">Read More ?</a>
               </div><!-- END post-entry-content -->
   
          <?php } else{ ?>
          <h2><a href="<?php the_permalink(' ') ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
       			<?php the_news_excerpt('50','','','plain','no'); ?>.
                   <a href="<?php the_permalink(' ') ?>" title="<?php the_title(); ?>" class="read-more">Read More ?</a>
          <?php } ?>
        	</div>
       	<!-- END post-entry -->
   
       <?php endwhile; ?>
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [TimDesain](https://wordpress.org/support/users/timdesain/)
 * (@timdesain)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/coding-2/#post-2413472)
 * just remove this code
 *     ```
       <a href="<?php the_permalink(' ') ?>" title="<?php the_title(); ?>" class="read-more">Read More ?</a>
       ```
   
 * located at 2 lines
 *  Thread Starter [BennoH](https://wordpress.org/support/users/bennoh/)
 * (@bennoh)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/coding-2/#post-2413473)
 * Brilliant, thank you very much! I’m somewhat of a novice if you hadn’t already
   worked that out!
 *  [TimDesain](https://wordpress.org/support/users/timdesain/)
 * (@timdesain)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/coding-2/#post-2413491)
 * you are weloome

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Coding’ is closed to new replies.

## Tags

 * [Coding](https://wordpress.org/support/topic-tag/coding/)

 * 3 replies
 * 2 participants
 * Last reply from: [TimDesain](https://wordpress.org/support/users/timdesain/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/coding-2/#post-2413491)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
