How to Display Longer Excerpts in Wordpress

104 20
    • 1). Log in to the Wordpress blog you want to alter.

    • 2). Click "Appearance" and "Editor." You can only access this section with an administrator level account, so make sure you have the appropriate permissions.

    • 3). Click "Functions.php." Type "function new_excerpt_length($length) {" and press "Enter." Type "return 20;" and press "Enter" for a new line.

    • 4). Type "}" and "Enter."

    • 5). Type "add_filter( 'excerpt_length', 'custom_excerpt_length', number );" where number is the numerical representation of the amount of characters shown in the excerpt. Save your changes to the functions.php file.

Source...

Leave A Reply

Your email address will not be published.