So I gave to each of my posts a custom date field (‘data_evento’) in format: d/m/Y.
The goal: sort the post this custom date. The most recents on top.
I tried a few online methods, but I could not make any of them actually work in my wordpress code (so I am not reposting any).
I look for help, starting from the default code I got in my template now, which is:
<?php
/* Start the Loop */
while ( have_posts() ) :
the_post();
?>
<div class="col">
<?php get_template_part( 'template-parts/content-home', get_post_type() ); ?>
</div>
<?php
endwhile;
?>
Thanks in advance!