Last active
          June 2, 2021 12:06 
        
      - 
      
- 
        Save annelyse/cb12bf4db2f376921b2ab1c60dded21d to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | add_filter( 'excerpt_length', function($length) { | |
| return 20; | |
| } ); | |
| // remove continue text on excerpt | |
| function custom_excerpt_more($more) { | |
| global $post; | |
| // $more_text = '...'; | |
| return '…'; | |
| } | |
| add_filter('excerpt_more', 'custom_excerpt_more'); | |
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment