Title: the_excerpt();
Last modified: August 30, 2016

---

# the_excerpt();

 *  [frhng](https://wordpress.org/support/users/frhng/)
 * (@frhng)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/the_excerpt-7/)
 * hi ;
    when i use the_excerpt(); i will disappear sidebar , Why??!! please HELP
   ME
 * **index.php**
 *     ```
       <?php
       /**
        * The main template file.
        *
        * This is the most generic template file in a WordPress theme
        * and one of the two required files for a theme (the other being style.css).
        * It is used to display a page when nothing more specific matches a query.
        * E.g., it puts together the home page when no home.php file exists.
        * Learn more: http://codex.wordpress.org/Template_Hierarchy
        *
        * @package pir-Javid
        */
   
       get_header(); ?>
   
       	<section class="feature-image feature-image-default-alt" data-type="background" data-speed="2">
       		<h1 class="page-title">Blog</h1>
       	</section>
   
       <!--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=BLOG CONTENT=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-->
       	<div class="container">
       		<div id="primary" class="row">
       			<main id="content" class="col-sm-8" role="main">
       				<?php if ( have_posts() ) : ?>
   
       					<?php if ( is_home() && ! is_front_page() ) : ?>
       						<header>
       							<h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
       						</header>
       					<?php endif; ?>
   
       					<?php /* Start the Loop */ ?>
       					<?php while ( have_posts() ) : the_post(); ?>
   
       						<?php
   
       						/*
                                * Include the Post-Format-specific template for the content.
                                * If you want to override this in a child theme, then include a file
                                * called content-___.php (where ___ is the Post Format name) and that will be used instead.
                                */
       						get_template_part( 'template-parts/content', get_post_format() );
       						?>
   
       					<?php endwhile; ?>
   
       					<?php the_posts_navigation(); ?>
   
       				<?php else : ?>
   
       <!--					--><?php //get_template_part( 'template-parts/content', 'none' ); ?>
   
       <!--					--><?php //get_template_part( 'content', get_post_format() ); ?>
   
       				<?php endif; ?>
       			</main>	<!-- content -->
       			<!--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=SIDEBAR=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-->
       			<aside class="col-sm-4 widgetleft">
       				<?php get_sidebar(); ?>
       			</aside><!-- col -->
       			</div><!-- primary -->
       		</div><!-- container -->
   
       <?php get_footer(); ?>
       ```
   
 * **content.php**
 *     ```
       <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
       	<header class="entry-header">
       		<?php the_title( sprintf( '<h3 class="entry-title"><a href="" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h3>' ); ?>
   
       		<?php if ( 'post' == get_post_type() ) : ?>
       			<div class="post-details">
       				<i class="fa fa-user"></i> <?php the_author(); ?>
       				<i class="fa fa-clock-o"></i> <time><?php the_date(); ?></time>
       				<i class="fa fa-folder-open"></i> <?php the_category(', '); ?>
       				<i class="fa fa-tags"></i><?php the_tags('', ', ', ''); ?>
       				<?php pir_javid_posted_on(); ?>
       				<div class="post-comments-badge">
       					<a href=""><i class="fa fa-comments"></i><?php comments_number(0,1,'%');?></a>
       				</div><!-- post-comments-badge -->
       				<div><?php edit_post_link( ' edit','<div><i class="fa fa-pencil"></i>','</div>' ); ?></div>
       			</div><!-- post-details -->
       		<?php endif; ?>
       	</header><!-- .entry-header -->
       	<div class="post-image">
       		<?php if ( has_post_thumbnail() ) { ?>
       		<?php the_post_thumbnail();?>
       		<?php  } ?>
       	</div> <!-- Post-Image -->
   
       	<div class="post-excert">
       		<?php
   
       			the_excerpt();
       		?>
   
       	</div><!-- post-excpert -->
       </article><!-- #post-## -->
       ```
   
 * **this my problem : **
 *     ```
       <div class="post-excert">
       		<?php
   
       			the_excerpt();
       		?>
   
       	</div><!-- post-excpert -->
       ```
   
 * if i hide this , my problem solve!!!

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

 *  [a2ztechnologies](https://wordpress.org/support/users/a2ztechnologies/)
 * (@a2ztechnologies)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/the_excerpt-7/#post-6411289)
 * Are you use any filters for the_excerpt action?
 *  Thread Starter [frhng](https://wordpress.org/support/users/frhng/)
 * (@frhng)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/the_excerpt-7/#post-6411291)
 * **i use this in functions.php**
 *     ```
       function new_excerpt_more($more){
       	global $post;
       	return '...<a class="moretag" href=" '. get_permalink($post -> ID) .'"> continue &raquo;</a>'; }
       	add_filter('excerpt_more', 'new_excerpt_more');
       ```
   
 *  [a2ztechnologies](https://wordpress.org/support/users/a2ztechnologies/)
 * (@a2ztechnologies)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/the_excerpt-7/#post-6411292)
 * Why you use this function? You need readmore link after excerpt content right?
 *  [a2ztechnologies](https://wordpress.org/support/users/a2ztechnologies/)
 * (@a2ztechnologies)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/the_excerpt-7/#post-6411294)
 * Just try to hide this function then try the_excerpt() function
 *  Thread Starter [frhng](https://wordpress.org/support/users/frhng/)
 * (@frhng)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/the_excerpt-7/#post-6411296)
 * _Just try to hide this function then try the\_excerpt() function_
    still not 
   work right
 *  [a2ztechnologies](https://wordpress.org/support/users/a2ztechnologies/)
 * (@a2ztechnologies)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/the_excerpt-7/#post-6411302)
 *     ```
       function excerpt( $num=50 )
       {
       	$limit = $num+1;
       	$excerpt = explode(' ', get_the_excerpt(), $limit);
       	array_pop($excerpt);
       	$excerpt = implode(" ",$excerpt);
       	echo esc_html( $excerpt );
       }
       ```
   
 * Just try this function but its only alternation. I have no idea about your issue..!
 *  Thread Starter [frhng](https://wordpress.org/support/users/frhng/)
 * (@frhng)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/the_excerpt-7/#post-6411309)
 * **Before
    
   
    [http://www.photobox.co.uk/my/photo/full?photo_id=8783392560](http://www.photobox.co.uk/my/photo/full?photo_id=8783392560)
 * **after**
    [http://www.photobox.co.uk/my/photo/full?photo_id=8783392719](http://www.photobox.co.uk/my/photo/full?photo_id=8783392719)
 * not work :((
 * i really darned
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [10 years, 11 months ago](https://wordpress.org/support/topic/the_excerpt-7/#post-6411347)
 * [@frhng](https://wordpress.org/support/users/frhng/) Do not create multiple topics
   for the same thing. Those get closed or deleted when found.
 * Continue on your original topic.
 * [https://wordpress.org/support/topic/the_excerpt-6?replies=1](https://wordpress.org/support/topic/the_excerpt-6?replies=1)

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

The topic ‘the_excerpt();’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 3 participants
 * Last reply from: [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/the_excerpt-7/#post-6411347)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
