Site icon Hip-Hop Website Design and Development

the most effective method to print the substance of pages inside the front end region

i’m new to wordpress and i’m attempting to make a site. I need show the substance of the pages while relating menu things are clicked. my page.php contain

<?php while ( have_posts() ) : the_post(); 

$page_data= $post->ID; 

if($page_data=='116') 

{ 

?> 

<center><b><h2>WELCOME TO THE CLINIC!!</h2></b></center> 

<?php 

} 

else{ 

?> 

<h1 class="entry-title"><?php the_title(); ?></h1> 

<?php 

the_content(); 

} 

endwhile; ?> 

but my substance isn’t showing. title is showing appropriately. what is the error in the code? if it’s not too much trouble, help me.