Excerpt (5 posts)

  1. mrlaporte
    Posted 3 years ago #

    Trying to override the excerpt function so what I type in shows on the homepage and not the 55 word posting excerpt.


  2. If you want to get rid of the excerpt altogether you'll need to change the code in your index.php.

    Find <?php the_excerpt(); ?> and change it to <?php the_content();?>

    If you want to change the length of the excerpt, then you'll need to add a function to your functions.php file.

    Something like this:

    //Modify the excerpt length

    function my_custom_excerpt_length($length) {
    	return 80;
    add_filter('excerpt_length', 'my_custom_excerpt_length');
  3. mrlaporte
    Posted 3 years ago #

    If I change it to the content, does that mean that what I enter in the WordPress excerpt function will then show? Instead of the auto-excerpt?

  4. mrlaporte
    Posted 3 years ago #

    I want to be able to use the excerpt function and create my own post summary. I do not want it to just automatically take the first 55 words of a post.

  5. ronangelo
    Posted 3 years ago #

    When editing a post, look at the top right of the screen and you'll find a "screen options". Click it then check the "Excerpt" check box.

    A new box will appear below the post editor.
    You can add your custom excerpt there.

Topic Closed

This topic has been closed to new replies.

About this Topic