Hi,
I followed these instructions https://kriesi.at/support/topic/blog-posts-excerpts-enfold/ to get the read-more function working. So I changed the loop-index.php, the right page is set as blogpage etc.. But it doesn’t work … I don’t get a read-more on the category-page.
Can you help me?
Hey Martijn!
Please add this on functions.php:
add_filter( 'post-format-standard', 'avia_category_content_filter', 15, 1);
function avia_category_content_filter($current_post)
{
if(is_archive())
{
$current_post['content'] = get_the_excerpt();
$current_post['content'] .= $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;
}
Best regards,
Ismael
Hi Ismeal,
Thanks for your attention!
This works almost to good! It provides an intro twice and strips the images (featered and also a image into the text). I like to have my own limited text, forced bij <!–more–>.
Hi!
Can you please give us a link to the archive category page? The <!–more–> tag should work for category pages even without adding the code above.
Cheers!
Ismael
Hi!
I only see the intro once on that first entry and in the second its the same.
Cheers!
Devin