Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #283110

    How to get “classical” (with read more where I chose it) blog layout in page (with advanced layout editor – blog posts) ?
    Now I can get or full content or “shortened” content.

    #283436

    Hey AdriaWave!

    The category/archive/blog 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() && empty($current_post['post_type']))
    	{
    		$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

    #283516

    Read more quicktag does not work, and code you have give me just broke masonry :(

    #283517
    This reply has been marked as private.
    #283990

    Hi Peter,

    what was the out come of this post ?

    I don’t want to input a manual excerpt for each post.

    I have inserted the <!–more–> tag in the post content
    However the post archive is not showing the_excerpt() or the_content()

    I am currently using AVIA layout builder – portfolio grid

    is there away to…

    if excerpt() true
    echo $excerpt
    else
    the_content()

    within the post loop layout ?

    #284547

    Hi!

    You can use the code I posted here: https://kriesi.at/support/topic/blog-layout-wiht-read-more/#post-283436 to fetch the excerpt from the “excerpt” option field.


    @AdriaWave
    – I edited the code a bit and now it should not break the masonry grid.

    Best regards,
    Peter

    #284640
    This reply has been marked as private.
    #284686

    Hi!

    Yes, if you’re using the template builder you can’t use the “read more” quicktag or generate an automatic excerpt from the content. You must use the excerpt field instead: http://www.clipular.com/c/6700337549279232.png?k=DxIUQQ30PNayVKQ3-5gTYAdxMOY .

    Best regards,
    Peter

    #286617

    OK
    Thanks :)

    #286632

    Hey!

    Thank you for visiting our forum.
    Enjoy the theme.

    Best regards,
    Günter

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Blog layout wiht read more’ is closed to new replies.