Hi can someone tell me where exactly i need to place this coding in the function.php.. I tried it once already and messed up the site .. Thanks
add_filter(‘avia_post_grid_query’, ‘avf_custom_post_grid_query’);
function avf_custom_post_grid_query ( $query ) {
$query[‘orderby’] = ‘title’;
$query[‘order’] = ‘DESC’;
return $query;
}
Hi Josue thank you for the plugin! .. I put the code in and saved but the portfolio grid is still not alphabetized any ideas? Thanks
add_filter('avia_post_grid_query', 'avf_custom_post_grid_query');
function avf_custom_post_grid_query ( $query ) {
$query['orderby'] = 'title';
$query['order'] = 'DESC';
return $query;
}
Hi,
Can you please create me an administrator account? post it here as a private reply.
Regards,
Josue
Hi!
Seems to be working now, here’s a test page i made with a portfolio grid + order reversed.
Best regards,
Josue
Hi!
Sure, just change this part in code:
$query['order'] = 'DESC';
To:
$query['order'] = 'ASC';
I ended putting the code in the theme functions.php (at the very end), for some reason the plugin i previously mentioned did not work.
Best regards,
Josue
Thanks so Much Josue!
You are welcome, glad to help :)
Regards,
Josue