I need the post summary size on my frontpage to be different from the summary size of the page where all the posts are displayed ( home.php
).
In my file functions.php
I put the following code:
//adiciona um novo tamanho de resumo de posts
function novo_tamanho_do_resumo($length) {
return 15; //15 palavras
}
add_filter('excerpt_length', 'novo_tamanho_do_resumo');
The problem with this code is that the abstract has 15 words on all pages, however I need it in frontpage.php
to be 15 words, and that in home.php
has 100 words.