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

    After the update the excerpt of Blog module is gone (Blog posts – grid layout). What I have to do to get the excerpt back like it was in 1.4 version?

    #123310

    We’ll fix this in the next version (will be released this week). For now open up wp-contentthemesenfoldconfig-templatebuilderavia-shortcodespostslider.php and replace

    switch($contents)
    {
    case "excerpt":
    $excerpt = $entry->post_excerpt;
    $title = $entry->post_title;
    break;
    case "excerpt_read_more":
    $excerpt = $entry->post_excerpt;
    $excerpt .= $permalink;
    $title = $entry->post_title;
    break;
    case "title":
    $excerpt = '';
    $title = $entry->post_title;
    break;
    case "title_read_more":
    $excerpt = $permalink;
    $title = $entry->post_title;
    break;
    case "only_excerpt":
    $excerpt = $entry->post_excerpt;
    $title = '';
    break;
    case "only_excerpt_read_more":
    $excerpt = $entry->post_excerpt;
    $excerpt .= $permalink;
    $title = '';
    break;
    case "no":
    $excerpt = '';
    $title = '';
    break;
    }

    with

    $post_excerpt = $entry->post_excerpt;
    if(empty($post_excerpt)) $post_excerpt = avia_backend_truncate($entry->post_content, apply_filters( 'custom_excerpt_length' , 45) , ".", "…", true);
    switch($contents)
    {
    case "excerpt":
    $excerpt = $post_excerpt;
    $title = $entry->post_title;
    break;
    case "excerpt_read_more":
    $excerpt = $post_excerpt;
    $excerpt .= $permalink;
    $title = $entry->post_title;
    break;
    case "title":
    $excerpt = '';
    $title = $entry->post_title;
    break;
    case "title_read_more":
    $excerpt = $permalink;
    $title = $entry->post_title;
    break;
    case "only_excerpt":
    $excerpt = $post_excerpt;
    $title = '';
    break;
    case "only_excerpt_read_more":
    $excerpt = $post_excerpt;
    $excerpt .= $permalink;
    $title = '';
    break;
    case "no":
    $excerpt = '';
    $title = '';
    break;
    }

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Blog Grid excerpt gone after 1.5 update’ is closed to new replies.