You can add your “New badge logic” into your loop
while ( $loop->have_posts() ) : $loop->the_post();
or use the content filter.
There you can use get_the_date()
function to calculate how old a post is and if it get’s an icon or not.
You can add your “New badge logic” into your loop
while ( $loop->have_posts() ) : $loop->the_post();
or use the content filter.
There you can use get_the_date()
function to calculate how old a post is and if it get’s an icon or not.