Tagged: blog layout, excerpt
Hi there!
I found this code in another thread about setting a character limit on excerpts and added it to functions.php:
/*
* add_filter('avf_postgrid_excerpt_length','avia_change_postgrid_excerpt_length', 10, 1);
function avia_change_postgrid_excerpt_length($length)
{
$length = 100;
return $length;
}
However, when you go to the following pages, you’ll notice the excerpt length is a LOT less than 300 characters.
EXCEPT on this page where the length of the excerpt can be short or very long:
Page 4
Any ideas on where I went wrong?
Hi!
I think the code should be:
add_filter('avf_postgrid_excerpt_length','avia_change_postgrid_excerpt_length', 10, 1);
function avia_change_postgrid_excerpt_length($length)
{
$length = 100;
return $length;
}
Regards,
Josue
I added that to the bottom of the functions.php page and it’s still showing up just the same as it was before…ugh!
Hi!
Are you copying the code from the forum or from the email?
Let us know!
Best regards,
Basilis
From the forum (see screenshot)
Hi,
Can you please create us a WordPress administrator account? post it here as a private reply.
Regards,
Josue
Here you go! :-)
Hi!
Check it now.
Best regards,
Josue
Maybe I’m missing something, but it still looks the same.
Hi!
Can you post a screenshot of your view? here’s how it looks on my end – http://screencast.com/t/wv2orC02
Regards,
Josue
I see that now…where did you input the updated code? I’d like to reduce the amount of characters in the excerpt. THANKS AGAIN!!!!!!!!!!!!!!
Hey!
Check in Plugins > Edit Functions.
Regards,
Josue
Josue, you are the man. THANKS!
You are welcome, glad to help :)
Regards,
Josue
Hi!
happy you got the problem solved, I will now lock the topic here, feel free to open a new one if you need assistance.
Cheers!
Basilis