Skip to content

Instantly share code, notes, and snippets.

@mrkkr
Created January 29, 2018 15:05
Show Gist options
  • Save mrkkr/b1590394d5833f30532f96b6e3e46350 to your computer and use it in GitHub Desktop.
Save mrkkr/b1590394d5833f30532f96b6e3e46350 to your computer and use it in GitHub Desktop.
Ręcznie ustalenie dlugości znaków 'excerpt' postu #php
function custom_excerpt_length( $length ) {
return 30; // limit znakóœ
}
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment