How to trim the_time() function in wordpress?

ob_start();
the_time('F');
$old_content = ob_get_clean();
$new_content = strip_tags($old_content);
$new_content = substr ($new_content, 0, 3);
echo $new_content;

//this time we are going to trim month  by using the_time('F')




No comments:

Post a Comment