Title: disable excerpt only for same posts
Last modified: August 19, 2016

---

# disable excerpt only for same posts

 *  [osinsh](https://wordpress.org/support/users/osinsh/)
 * (@osinsh)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/disable-excerpt-only-for-same-posts/)
 * I want to disable excerpt function only for same of posts. I guess that this 
   function is set like default for my wp theme Antisnews 1.9 by antisocialmediallc.
   com. Please help to solve this problem!

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/disable-excerpt-only-for-same-posts/#post-1804784)
 * ‘disable excerpt function’ = ‘show full post’ ?
 * you need to find the template file that displays the posts (probably index.php–
   but you haven’t given much info); and then find the line with `the_excerpt()`
 * assume the line looks simply like:
 * `<?php the_excerpt(); ?>`
 * then you could change this to the following with the array containing the post
   IDs where you want to disable the excerpt function:
 *     ```
       <?php if( in_array( $post->ID, array( 12, 33, 67, 325 ) ) ) {
       the_content();
       } else {
       the_excerpt();
       }
       ?>
       ```
   
 * untested
 *  Thread Starter [osinsh](https://wordpress.org/support/users/osinsh/)
 * (@osinsh)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/disable-excerpt-only-for-same-posts/#post-1804787)
 * what kind of info do you need?
 *  Thread Starter [osinsh](https://wordpress.org/support/users/osinsh/)
 * (@osinsh)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/disable-excerpt-only-for-same-posts/#post-1804788)
 *     ```
       <?php global $themeoptionsprefix;?>
       <?php $AntisnewsOptions=get_antisnewsoptions();?>
       <?php $operationmode=$AntisnewsOptions[$themeoptionsprefix.'_operationmode'];?>
       <?php if(!isset($operationmode) || empty($operationmode)){$operationmode="Magazine Off";}?>
       <?php if($operationmode == "Tutorial"){ include (TEMPLATEPATH . '/tutorial-mode.php');}elseif($operationmode == "Magazine Off"){include (TEMPLATEPATH . '/index-nonmag.php');}elseif($operationmode == "Live"){include (TEMPLATEPATH . '/index-live.php');}else{include (TEMPLATEPATH . '/tutorial-mode.php');}?>
       ```
   
 * thats what i have in index.php
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/disable-excerpt-only-for-same-posts/#post-1804789)
 * sorry, that theme has too many option for me to find the space where you could
   psssibly change something –
 * hopfully someone with an in-depth knowledge of antisnews can help you.

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

The topic ‘disable excerpt only for same posts’ is closed to new replies.

## Tags

 * [antisnews](https://wordpress.org/support/topic-tag/antisnews/)
 * [excerp](https://wordpress.org/support/topic-tag/excerp/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/disable-excerpt-only-for-same-posts/#post-1804789)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
