-
AuthorPosts
-
January 18, 2016 at 11:44 am #567082
hi, i use the content item “post” to show my posts of one category. i have 3 questions:
– how i can select the order (date, id, ascending, discending,…) to show the posts?
– how i can centralize the title of post?
– how i can hide the title of category posts?
thanksJanuary 19, 2016 at 4:22 am #567565Hi Pas7o!
1. Please see here, http://kriesi.at/documentation/enfold/change-the-sort-order-of-blog-posts-elements/.
2. + 3. Add this to your custom CSS.
.post-title a { text-align: center; display: block; } .blog-categories { display: none !important; }
Best regards,
ElliottJanuary 19, 2016 at 5:37 pm #5679861 ok, thanks. it’s work.
2+3 where i put the code? into enfold –> general style —> css or in appareance —> editor —> style.css?
thanks
January 19, 2016 at 6:49 pm #568039i utilize the standard editor to put the content into the page. i select the content item “posts” and this is the code:
[av_blog blog_type='posts' categories='5' link='category' blog_style='blog-grid' columns='3' contents='title' content_length='content' preview_mode='custom' image_size='medium' items='-1' offset='0' paginate='yes' conditional='']
can you give me the code for order by (date, id, title,…) and order (ascending, discending), please? thanks
January 19, 2016 at 10:25 pm #568182Hey!
Please take a look here
https://kriesi.at/support/topic/add-orderby-to-av_blog/to understand how it works and what you need to do.
Please do let us know if you have more questions, we will be more than happy to help you out.Regards,
BasilisJanuary 20, 2016 at 12:12 pm #568547don’t work. can i add this code into functions.php
add_filter(‘avia_blog_post_query’, ‘avia_modify_post_grid_query_desc’);
function avia_modify_post_grid_query_desc( $query ) {
$query[‘orderby’] = ‘date’;
$query[‘order’] = ‘DESC’;
return $query;
}and this is the code into the standard editor:
[av_blog blog_type='posts' categories='5' link='category' blog_style='blog-grid' columns='3' contents='title' content_length='content' preview_mode='custom' image_size='medium' items='-1' offset='0' paginate='yes' conditional='' orderby='date']but it don’t work.
- This reply was modified 8 years, 11 months ago by Pas7o.
January 21, 2016 at 2:24 pm #569402Hi!
please refer to this tutorial: http://kriesi.at/documentation/enfold/how-to-add-an-orderorderby-option-to-the-blogpost-sliderportfoliomasonry-grid-element/
Cheers!
Andy -
AuthorPosts
- You must be logged in to reply to this topic.