I have a menu that has the following link in it to my homepage:
<ul id="css3menu1" class="topmenu">
<li class="topmenu"><a href="<?php bloginfo('template_url'); ?>/homepage.php" target="_top" title="Home" style="height:20px;line-height:20px;">Home</a></li>
When I click on the menu link it takes to the homepage file (this url:http://elliottequineconnections.com/wp-content/themes/elliottequineconnections/homepage.php) the top of the file displays(where I have an image) but none of the php code inside the file is executed.
Code that is not executed:
<?php if (have_posts() ) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages</strong>','after' => '</p>', 'next_cr_number' => 'number')); ?>
</div>
</div>
<?php endwhile; endif; ?>
<?php edit_post_link('Edit this entry.','<p>','</p>'); ?>
</div>
</div>
<?php endwhile; endif; ?>
<?php edit_post_link('Edit this entry.','<p>','</p>'); ?>
Am I linking to homepage.php in the wrong way?