How to check current post today date in Word Press?


Hi you go and use below code this useful for you.

<?php

$u_time = get_the_time(‘U’);
$u_modified_time = get_the_modified_time(‘U’);

//Current Post Checkup Start

if (($wp_query->current_post < 1)&&($u_modified_time == $u_time)) { ?>

<div>
<?php
$page_name = array(74);
$welcome_data = get_page($page_name[0]);
?>
<!– h1><a href=”<//?php echo get_permalink($welcome_data->ID); ?>”>Private Lessons</a></h1 –>
<?php
echo $welcome_data->post_content;
?>
</div><!– Special Box Content End –>

<?php } //Current Post Checkup End  ?>

Comments are closed.