Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WordPress Snippet (für functions.php oder Plugin). Definiere die maximale Anzahl Wörter welche im Auszug (Excerpt) angezeigt werden sollen.
<?php
function custom_excerpt_length( $length ) {
return 20;
}
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
?>
@pixelstrolch

This comment has been minimized.

Copy link
Owner Author

@pixelstrolch pixelstrolch commented Jul 17, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment