Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17644

    Hi,

    within CORONA’s template builder I need a template with among other things 3 columns, showing the posts from certain categories, but I don’t have here the possiblity to show there the post title and the post excerpt – not the whole post and not only the title+image.

    I would like to have the image + post title + post excerpt.

    Is this possible in any way?

    I hope, that nothing has went wrong with the excerpt code, as we have discussed these days here:

    http://www.kriesi.at/support/topic/how-to-use-individual-post-excerpts-with-corona

    Thanks.

    #96280

    Update:

    I just discovered, that the automatic excerpt as defined in the functions.php of CORONA works not on dynamic templates.

    In dynamic templates as shown above, an excerpt of a post is only shown, when I limit the post text with the more-tag.

    Isn’t this possible with the “automatic” excerpt of the functions.php?

    #96281

    You can try following – open up includes/helper-templates.php and replace following code:

    $content = get_the_content('<span class="inner_more">'.__('Read more  &rarr;','avia_framework').'</span>');

    with:

    if(is_single()){
    $content = get_the_content('<span class="inner_more">'.__('Read more &rarr;','avia_framework').'</span>');
    $content = apply_filters('the_content', $content);
    $content = str_replace(']]>', ']]>', $content);
    }else{
    $content = apply_filters('the_excerpt', get_the_excerpt());
    $content .= '<p><a class="more-link" href="'. get_permalink().'"><span class="inner_more">'.__('Read more &rarr;','avia_framework').'</span></a></p>';
    }

    #96282

    Works great, thanks!

    If someone needs this, too:

    the code, that you need to search for, is twice in the includes/helper-templates.php; replace the part in line 856 (and not 598) with the code shown above.

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

The topic ‘CORONA Template Builder: showing posts with title and post EXCERPT’ is closed to new replies.