WordPress.org

Forums

[resolved] How to display title and first 100 character (3 posts)

  1. zzuum
    Member
    Posted 1 year ago #

    Hello,
    I would like when i click on category, the page will display title, thumnail and first 100 character of some post...

    my site: http://stefanvblog.com/category/news/

    it is custom theme

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Try something like:

    // Increase excerpt length
    function my_excerpt_length($length) {
    	return 100; // Or whatever you want the length to be.
    }
    if( is_category() ) add_filter('excerpt_length', 'my_excerpt_length');

    in your theme's functions.php file.

  3. zzuum
    Member
    Posted 1 year ago #

    Thank you for your answer, but nothing happend...
    Do you know some other method..
    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic