Title: Select Specific Post Types
Last modified: August 20, 2016

---

# Select Specific Post Types

 *  [computersimple](https://wordpress.org/support/users/computersimple/)
 * (@computersimple)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/select-specific-post-types/)
 * Hi – Just wondering if there is a way or if I can look forward to a way to select
   specific post types. for example default post types would use the advanced excerpt
   setting but a custom post type could be excluded from the advanced excerpt settings…
 * Thanks, Lavada
 * [http://wordpress.org/extend/plugins/advanced-excerpt/](http://wordpress.org/extend/plugins/advanced-excerpt/)

Viewing 1 replies (of 1 total)

 *  [gbotica](https://wordpress.org/support/users/gbotica/)
 * (@gbotica)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/select-specific-post-types/#post-3626041)
 * I also needed this functionality. So far, the only way I’ve managed it is to 
   modify the plugin source code (not ideal, I know)
 * Look for the following, in advanced-excerpt.php
 *     ```
       // Create the excerpt
                 $text = $this->text_excerpt($text, $length, $use_words, $finish_word, $finish_sentence);
   
       // Add the ellipsis or link
                 $text = $this->text_add_more($text, $ellipsis, ($add_link) ? $read_more : false);
       ```
   
 * and replace with:
 *     ```
       if (get_post_type() =="post") {
   
        // Create the excerpt
                 $text = $this->text_excerpt($text, $length, $use_words, $finish_word, $finish_sentence);
   
       // Add the ellipsis or link
                 $text = $this->text_add_more($text, $ellipsis, ($add_link) ? $read_more : false);
   
               }
       ```
   
 * Anyone out there know a way do do this in functions.php?

Viewing 1 replies (of 1 total)

The topic ‘Select Specific Post Types’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/advanced-excerpt_ae8159.svg)
 * [Advanced Excerpt](https://wordpress.org/plugins/advanced-excerpt/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-excerpt/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-excerpt/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-excerpt/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-excerpt/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-excerpt/reviews/)

## Tags

 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)

 * 1 reply
 * 2 participants
 * Last reply from: [gbotica](https://wordpress.org/support/users/gbotica/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/select-specific-post-types/#post-3626041)
 * Status: not resolved