I have developed a theme in wordpress. When I go to home page tab it shows "page not found" at the title. But it shows all contents of home page (index.php). If I create a page named "Home" then it shows the page content instead of my index.php contents. I want to show index.php contents when I go to home page.

here is the link http://admission247.com/

I use this code in page.php

<?php  if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="page_content">

<?php // echo '<br/><br/>'; ?>
<?php the_content(); ?>
</div>
<?php endwhile; ?>
<?php endif; ?>

The code you are showing looks fine. Where's the part in the Wordpress template that lets you set the <title>?

Thanks for showing interest dani.
My problem is solved.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.