Skip to:
Content
Pages
Categories
Search
Top
Bottom

custom theme

  • 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)
  • @karmatosed

    Moderator

    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:

    https://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');

    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)
  • The topic ‘custom theme’ is closed to new replies.
Skip to toolbar