Skip to:
Content
Pages
Categories
Search
Top
Bottom

custom theme

  • Avatar of czz
    czz
    Member

    @czz

    Hi, I’m building a custom theme for a poker community. After putting featured images as thumbnail. The archive post excerpt displays the full content of the post.. as you can see in home page: http://pokeritaliaclub.tk/ … Any solution for smaller excerpt?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of Tammie
    Tammie
    Moderator

    @karmatosed

    Are you using the_content or the_excerpt to show the content? the_excerpt should give you exactly that an excerpt so if using you would need to make that smaller:

    http://codex.wordpress.org/Function_Reference/the_excerpt

    Specifically useful to you would be this:


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

    Avatar of czz
    czz
    Member

    @czz

    Hi,
    I’m using the_excerpt . It work’s if I post the article manually, but it don’t if I use an autopst plug.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.