Tagged: enfold
-
AuthorPosts
-
October 26, 2014 at 5:46 pm #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.
October 26, 2014 at 6:03 pm #341146Also, 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.
October 27, 2014 at 8:56 am #341367Hey!
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!
IsmaelOctober 27, 2014 at 3:31 pm #341542That 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.
October 27, 2014 at 4:09 pm #341562Hi!
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,
YigitOctober 27, 2014 at 5:56 pm #341627Hmmm – 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?
October 29, 2014 at 10:31 pm #343036Hi!
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"> →</span></a></div>'; } return $current_post; }
Set the character limit on this line:
$current_post['content'] = avia_limit_words($excerpt, 10);
Regards,
IsmaelOctober 30, 2014 at 2:56 pm #343425Yay! It works great!
-
AuthorPosts
- The topic ‘Blog Posts Not In Order’ is closed to new replies.