WordPress.org

Support

Support » Themes and Templates » How to display excerpt of posts? (not FULL posts)

How to display excerpt of posts? (not FULL posts)

  • PersonaGrated
    Member

    @personagrated

    Hi,

    This website displays only a short summary of the blog posts:
    http://clashtournaments.com/?page_id=738

    On my website it shows the full blog posts. I have disabled the ‘front page’ that Responsive uses. So, I want my front page to show excerpts instead of full posts.

    I am using a child theme of Responsive Theme.

    How can I do that?

    Thanks! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • PersonaGrated
    Member

    @personagrated

    I added this to a newly created functions.php in my child theme’s directory.

    <?php
    /**
     * Sets the post excerpt length to 15 words.
     */
    function custom_excerpt_length($length) {
        return 15;
    }
    
    add_filter('excerpt_length', 'custom_excerpt_length', 999);
    ?>

    It did NOTHING.

    WPyogi
    Forum Moderator

    @wpyogi

    You may get better help on the developers forum here:

    Responsive

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to display excerpt of posts? (not FULL posts)’ is closed to new replies.