Tagged: , ,

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

    Hello.

    I need help. I use in several page the grid article layout based on a certain category of my PAGES.

    the order is set by default by date order descending. I want to be able to sort the grid alphabetically instead of date.

    The best will be to reorder manually.

    I have read several topics about that but… I would to avoid modifying the function.php file.

    Can I modify the creqtion date of the page to reorder. If yes is there any problem with this modification ( Google indexation for exemple)

    Is there another way to have a customizer order in the grid?

    If no, what is the code to reorder a certain grid on a certain page In function.php?

    Thanks to the developper team

    #448259

    Hey fredengl!

    Thank you for using Enfold.

    Add this in the functions.php file in order to sort the blog grid alphabetically:

    add_filter('avia_post_slide_query','avia_change_grid_order', 10, 2);
    function avia_change_grid_order($query, $params)
    {
    $query['orderby'] = 'title';
    $query['order'] = 'ASC';
    
    return $query;
    }

    Regards,
    Ismael

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