Hi,
i understand you will have some custom field which will allow you to select “new” or “used” option (let’s assume this field will be named “condition”).
If so then you can display the badge like on the page you linked to by adding the code below in your theme functions.php file
add_action( "adverts_list_after_title", "my_adverts_list_after_title" );
function my_adverts_list_after_title( $post_id ) {
$cond = get_post_meta( $post_id, "condition", true );
if( $cond == "new" ) {
echo '<span style="display:inline-block;float:right;position: absolute;top: 5px;left: 5px;background: blue;color: white;padding: 2px 4px;font-size: 12px;">NEW</span>';
} else {
echo '<span style="display:inline-block;float:right;position: absolute;top: 5px;left: 5px;background: yellow;color: white;padding: 2px 4px;font-size: 12px;">USED</span>';
}
}