Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #341145

    I have a blog on this page:

    http://revisionlegal.tcventurepartners.com/blog/

    The blog posts are showing up in random order instead of ascending order.

    I’ve disabled all of the plugins and that doesn’t seem to be causing the issue. I’m using the latest version, etc.

    Any help would be greatly appreciated.

    #341146

    Also, when searching for blog posts by category or tag it shows the full post instead of an excerpt with a read more tag. Where would I set that? I was looking through other posts but couldn’t find anything specific for Enfold’s excerpt length for categories.

    #341367

    Hey!

    Thank you for using Enfold.

    Maybe you added a order/orderby filter on functions.php? Please refer to this link on how to add a sorting option for the blog posts element: http://kriesi.at/documentation/enfold/how-to-add-an-orderorderby-option-to-the-blogpost-sliderportfoliomasonry-grid-element/

    Cheers!
    Ismael

    #341542

    That link worked great at getting posts to show up in the appropriate order.

    Could you also point me in the right direction for how to customize how category and tag searches look – I’d like to only show excerpts instead of full posts.

    #341562

    Hi!

    Please add following code to Functions.php file in Appearance > Editor and adjust the number as needed

    function custom_excerpt_length( $length ) {
           if(is_category())
           {
                  $length = 30;
           }
    	return $length ;
    }
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999, 1 );

    Regards,
    Yigit

    #341627

    Hmmm – that bit of code doesn’t seem to work:

    http://revisionlegal.com/category/business-lawyer/

    I also clicked “For each article in a feed, show Summary” – any thoughts as to what might be over-riding both of these defaults?

    #343036

    Hi!

    Please replace the code with this:

    function avia_limit_words($string, $word_limit)
    {
        $words = explode(" ",$string);
        return implode(" ",array_splice($words,0,$word_limit));
    }
    
    add_filter( 'post-format-standard', 'avia_category_content_filter', 15, 1);
    function avia_category_content_filter($current_post)
    {
    if(is_archive())
    {	
    	$excerpt = get_the_excerpt();
    	$current_post['content']  = avia_limit_words($excerpt, 10);
    	$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;
    }

    Set the character limit on this line:

    $current_post['content']  = avia_limit_words($excerpt, 10);
    

    Regards,
    Ismael

    #343425

    Yay! It works great!

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Blog Posts Not In Order’ is closed to new replies.