0

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; ?>
2
Contributors
2
Replies
9
Views
4 Years
Discussion Span
Last Post by rubai
0

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

0

Thanks for showing interest dani.
My problem is solved.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.