Hi,
I’m trying to increase the length of the category excerpts in the magazine content display for blog posts. I only want the excerpt length to be longer for the av-magazine-hero side of the layout. I found the following filter in support but I’m not sure what needs to be changed in order for it to work.
The page I’m working on is in private content.
Thanks.
add_filter(‘avf_postgrid_excerpt_length’,’avia_change_postgrid_excerpt_length’, 10, 1);
function avia_change_postgrid_excerpt_length($length)
{
$length = 100;
return $length;
}
Hey connect4consulting,
Please use following code instead
add_filter('avf_magazine_excerpt_length','avf_magazine_excerpt_new_lenght', 10, 1);
function avf_magazine_excerpt_new_lenght($excerpt) {
$excerpt = 100;
return $excerpt;
}
Best regards,
Yigit
Thank Yigit.
Is there documentation somewhere about all the possible filters?
How would I set this up so that the first post isn’t an excerpt? It shows the full post.