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

    Hi,

    If you view our blog page here http://understandinge.com/blog/ which uses this shortcode to show the blog posts:

    [av_blog blog_type='posts' link='category' blog_style='single-big' columns='3' contents='excerpt' content_length='excerpt_read_more' preview_mode='custom' image_size='entry_with_sidebar' items='6' offset='0' paginate='yes']

    This indicates that we have an except set for each article.

    However when viewing any of the blog category pages, such as this one:

    http://understandinge.com/magento/

    The full description is being shown, how do we only show the main image, title and except on blog categories?

    Matt

    #263785

    Hey Matt!

    The category/archive pages use the read more quicktag ( http://en.support.wordpress.com/splitting-content/more-tag/ ) to separate the excerpt from the content. You can also use the “excerpt” option field on the post editor page to insert a custom excerpt text but you need to add this code to your child theme functions.php file or enfold/functions.php:

    
    add_filter( 'post-format-standard', 'avia_category_content_filter', 15, 1);
    function avia_category_content_filter($current_post)
    {
    if(!is_single())
    {
    	$current_post['content'] =  get_the_excerpt();
    	$current_post['content'] .= '<div class="read-more-link"><a href="'.get_permalink().'" class="more-link">'.__('Read more','avia_framework').'<span class="more-link-arrow">  &rarr;</span></a></div>';
    }
    return $current_post;
    }
    

    to query the excerpt from the “excerpt” field.

    Cheers!
    Peter

    #263788

    Hi Peter,

    The function worked brilliantly.

    Thank you!

    Matt

    #263795

    Hey!

    Great :)

    Cheers!
    Peter

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