I’m using my blog as an events calendar, so I’ve used ACF to add a date picker right below the post title. I’ve updated the loop-index to display posts by that date, rather than publish date.
I’m wondering if it’s possible to do the same thing with the Blog Posts widget in the layout builder. That block seems to take the formatting edits from loop-index, but it’s still sorting by the publish date.
Thanks
Hey davidzack!
Are you using the blog grid layout? You can add this on functions.php to sort the order of blog posts:
add_filter('avia_post_slide_query','avia_order_by_random', 10, 2);
function avia_order_by_random($query, $params)
{
$query['orderby'] = 'title';
$query['order'] = 'ASC';
return $query;
}
Regards,
Ismael