Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #21949


    I am trying to create excerpts to appear on my homepage beneath my blog posts, which are appearing using the columns within the template builder.

    Having looked on the support forum I found these lines of code

    For the functions.php –

    function custom_excerpt_length( $length ) {

    return 50;


    add_filter( ‘excerpt_length’, ‘custom_excerpt_length’, 999 );

    function new_excerpt_more($more) {

    return ‘ …’;


    add_filter(‘excerpt_more’, ‘new_excerpt_more’);

    and for the loop-index.php –

    <!– if there is an individual excerpt, show it, otherwise do nothing –>

    <?php if(!empty($post->post_excerpt)) {

    echo ‘<div id=”textauszug”>’;


    echo ‘</div>’;

    } ?>


    if(strpos($avia_config, ‘medium_image sidebar’) !== false) echo $slider->display_small(‘blog’);


    the_excerpt(__(‘Read more ?’,’avia_framework’));

    echo ‘‘.__(‘Read more →’,’avia_framework’).’‘;


    the_content(__(‘Read more ?’,’avia_framework’));


    When I placed these codes in the editor they took no, effect – only making my blog disappear. Is there a particular place within the .php files I need to put them? I just placed at the bottom.



    This is the website –



    Not sure what that code is. Don’t use it. Please install this plugin, it will create the field that you want and assign it to the page/post/cpt or all of them. The field will be created and you will see it the next time you edit or add new posts,…

    A simple and ultra friendly API lets you easily retrieve the content and paste it straight into wherever you want it to display. 700,000 users of this free plugin can’t be wrong.



Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Custom Post Excerpts To Appear on The Homepage’ is closed to new replies.