Tagged: enfold
Hi I am trying to add a simple button to my front-end page where I show all my posts (blog post). the button should enable just to give a ASC sorting based on the title. I wonder if I have to use the function
function avia_modify_post_grid_query_desc( $query ) {
$query['orderby'] = 'title';
$query['order'] = 'DESC';
return $query;
}
which is described here https://kriesi.at/documentation/enfold/blog-post/#toggle-id-23
Is it the right function? and if yes, how do I trigger it on my button? Should I use the explanation proposed here? Consider that I want to do it with an ajax call
Thanks
Hey Elena,
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
Yigit