Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #714084

    Hi,

    Would you know a function of how to change the excerpt word count but only for specific page, because i have two different blog pages in one site but i want one to display the full content and the other to display only 50 words

    #714086

    Hey AboveDigital!

    Please add following code to Functions.php file in Appearance > Editor

    add_filter('avf_postgrid_excerpt_length','avia_change_postgrid_excerpt_length', 10, 1);
    function avia_change_postgrid_excerpt_length($length)
    {
    if(is_page(39)){ 
       $length = 50;
    }
    elseif(is_page(191)){
       $length = 999;
    }
    }
       return $length;
    }
    

    Cheers!
    Yigit

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.