in the homepage use module “postgrid” to visualize ” 4 news(name category), 4event(name category), 4 special (name category)”.
I like to order by date the “event” category,
news “category” by title
and the last category “special” with “custom filed” name “end-date”
I find a function can I specificy a category of post ? ( i ilks t have different order view for category)
With post grid
add_filter(‘avia_blog_post_query’, ‘avia_modify_post_grid_query_desc’);
function avia_modify_post_grid_query_desc( $query ) {
$query[‘orderby’] = ‘title’;
$query[‘order’] = ‘DESC’;
return $query;
}
Hey marcobe,
Thank you for the inquiry.
You can enable the “Order” and “Orderby” options for the Blog Posts element instead of using the filter. Please check the documentation below.
// https://kriesi.at/documentation/enfold/blog-post/#toggle-id-26
Best regards,
Ismael