How Current Post Checkup in WP?


Hi this just fun and good easy code enjoy all peoples :

<?php

//Current Post Checkup Start

if ($wp_query->current_post < 1) { ?>

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

<?php } else { ?>

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

Comments are closed.