WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Is it possible to have (2) different exerpt lengths?

[Resolved] Is it possible to have (2) different exerpt lengths?

  • Curious, Is it possible to have (2) different excerpt lengths controlled via your functions.php template? ie. Currently, I am using

    function new_excerpt_length($length) {
    return 55;
    }

    to filter how many characters I want to show up for each post…however, what Id like to do is feature the excerpt much shorter in my “works” category in order to tailor it to my design. So is it possible to add yet another function in order to make it pass that set of arguments twice, but for different pages, categories, etc?

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Is it possible to have (2) different exerpt lengths?’ is closed to new replies.
Skip to toolbar