WordPress.org

Ready to get started?Download WordPress

Forums

Visual
[resolved] How can I change the number of characters on the post excerpts (5 posts)

  1. metheny
    Member
    Posted 10 months ago #

    How can I change the number of characters on the post excerpts?
    I did read that a filter to functions.php. needs to be added …can someone tell me how this is done?
    I copied and added this to functions.php file but nothing happened…..What steps did I miss…
    Thanx

    function custom_excerpt_length( $length ) {
    return 20;
    }
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

  2. Devin Price
    Member
    Theme Author

    Posted 10 months ago #

    The latest version changes this from the_excerpt to the_content- so that full content will show. You can now use the "More" button to choose where the cutoff happens.

  3. metheny
    Member
    Posted 10 months ago #

    Great,

    Thank You So Much

    This is a great theme.

    It looks awesome in mobile devices also.

  4. mikespics1
    Member
    Posted 10 months ago #

    Hi

    I've got a similar problem that I'd like help with.

    Basically I want to have additional images in my posts, but I only want the featured image to be visible when you visit the home page.
    So you'd only see the featured image and text - not any other images in my posts.

    Right now other images in my posts are visible on the home page which doesn't look so good (in my opinion)

    I'm new to wordpress, so any help or pointers in the right direction would be much appreciated!

    Here is a my blog - http://www.mikespics.co.za/

    PS - love the visual theme! Thanks a lot Devin!

  5. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 10 months ago #

    @mikespics1, You can create your own thread to discuss that.

Reply

You must log in to post.

About this Theme

About this Topic