-
AuthorPosts
-
June 24, 2014 at 4:12 pm #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.June 25, 2014 at 8:08 am #283436Hey 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"> →</span></a></div>'; } return $current_post; }
to query the excerpt from the “excerpt” field.
Cheers!
PeterJune 25, 2014 at 11:35 am #283516Read more quicktag does not work, and code you have give me just broke masonry :(
June 25, 2014 at 11:38 am #283517This reply has been marked as private.June 26, 2014 at 11:08 am #283990Hi 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 ?
June 27, 2014 at 1:49 pm #284547Hi!
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,
PeterJune 27, 2014 at 4:46 pm #284640This reply has been marked as private.June 27, 2014 at 6:30 pm #284686Hi!
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,
PeterJuly 3, 2014 at 12:43 pm #286617OK
Thanks :)July 3, 2014 at 1:04 pm #286632 -
AuthorPosts
- The topic ‘Blog layout wiht read more’ is closed to new replies.