Viewing 1 replies (of 1 total)
  • 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.