Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #238681

    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?

    • This topic was modified 10 years, 8 months ago by Martijn.
    #238688

    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">  &rarr;</span></a></div>';
    }
    return $current_post;
    }

    Best regards,
    Ismael

    #238727

    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–>.

    • This reply was modified 10 years, 8 months ago by Martijn.
    #239122

    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

    #240686
    This reply has been marked as private.
    #242421

    Hi!

    I only see the intro once on that first entry and in the second its the same.

    Cheers!
    Devin

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