How to show “NEW” icon after recent posts’ title?

You might want to show a “NEW” icon New after your latest posts’ title.
Please add this code to file functions.php of your active theme:

// CVPro - Show custom icon in title
add_filter( 'pt_cv_field_title_result', 'cvp_theme_custom_title_icon', 100, 3 );
function cvp_theme_custom_title_icon( $title, $fargs, $post ) {
	$hours	 = 24;
	$diff	 = time() - mysql2date( 'U', $post->post_date );

	if ( $hours * 60 * 60 > $diff ) {
		$title = $title . "<img src='PATH_OF_IMAGE' />";
	}

	return $title;
}

Please replace PATH_OF_IMAGE with path of your image.

The 24 value of $hours means posts within 24 hours will be added the “NEW” icon, you are free to change it to any value you want.

Thank you,