Title: Code for first full post/excerpt for rest
Last modified: August 24, 2016

---

# Code for first full post/excerpt for rest

 *  [daniellerandall12](https://wordpress.org/support/users/daniellerandall12/)
 * (@daniellerandall12)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/code-for-first-full-postexcerpt-for-rest/)
 * I was wondering if there was a code for me to get a full post for the first post
   then excerpts for the rest. I’m using the 1.2 version..
 * Also where would I put the code?

Viewing 1 replies (of 1 total)

 *  [Maruti Mohanty](https://wordpress.org/support/users/marutim/)
 * (@marutim)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/code-for-first-full-postexcerpt-for-rest/#post-5988897)
 * Hi D
 * You can do it customizing the **wp-content/themes/fashionistas/content.php** 
   file. I will suggest you to use [child theme ](http://www.sourcexpress.com/wordpress-child-themes-use/)
   for making the change, so that the change remain preserved even after the theme
   is updated, which you need to do.
 * Replace the following set of codes from line number 30
 *     ```
       <?php if ( ( is_search() && get_theme_mod('athemes_search_excerpt') =='' ) || ( is_home() && get_theme_mod('athemes_home_excerpt') =='' ) || ( is_archive() && get_theme_mod('athemes_arch_excerpt') =='' ) ) : ?>
       		<div class="entry-summary">
       			<?php the_excerpt(); ?>
       		<!-- .entry-summary --></div>
       	<?php else : ?>
       		<div class="clearfix entry-content">
       			<?php the_content( __( 'Continue Reading <span class="meta-nav">&rarr;</span>', 'athemes' ) ); ?>
       			<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'athemes' ), 'after' => '</div>' ) ); ?>
       		<!-- .entry-content --></div>
       	<?php endif; ?>
       ```
   
 * with the following code
 *     ```
       <?php $recent_post = wp_get_recent_posts( array( 'numberposts' => 1, 'post_status' => 'publish' ), OBJECT ); ?>
       	<?php if ( $recent_post[0]->ID === get_the_ID() ) :?>
       		<div class="clearfix entry-content">
       			<?php the_content( __( 'Continue Reading <span class="meta-nav">&rarr;</span>', 'athemes' ) ); ?>
       			<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'athemes' ), 'after' => '</div>' ) ); ?>
       		<!-- .entry-content --></div>
   
       	<?php else : if ( ( is_search() && get_theme_mod('athemes_search_excerpt') =='' ) || ( is_home() && get_theme_mod('athemes_home_excerpt') =='' ) || ( is_archive() && get_theme_mod('athemes_arch_excerpt') =='' ) ) : ?>
       		<div class="entry-summary">
       			<?php the_excerpt(); ?>
       		<!-- .entry-summary --></div>
       	<?php else : ?>
       		<div class="clearfix entry-content">
       			<?php the_content( __( 'Continue Reading <span class="meta-nav">&rarr;</span>', 'athemes' ) ); ?>
       			<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'athemes' ), 'after' => '</div>' ) ); ?>
       		<!-- .entry-content --></div>
       	<?php endif; endif; ?>
       ```
   
 * Also make sure you have checked, excerpt for home page in the theme customizer.
 * Hope it helps!!
 * Thanks

Viewing 1 replies (of 1 total)

The topic ‘Code for first full post/excerpt for rest’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/fashionistas/1.9/screenshot.png)
 * Fashionistas
 * [Support Threads](https://wordpress.org/support/theme/fashionistas/)
 * [Active Topics](https://wordpress.org/support/theme/fashionistas/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/fashionistas/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/fashionistas/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Maruti Mohanty](https://wordpress.org/support/users/marutim/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/code-for-first-full-postexcerpt-for-rest/#post-5988897)
 * Status: not resolved