Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1161700

    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;
    }

    • This topic was modified 4 years, 11 months ago by marcobe.
    #1162906

    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

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