我有一个菜单,其中有以下链接到我的主页:
<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>
当我单击菜单链接时,它会指向主页文件(此url:http://elliottequineconnections.com/wp-content/themes/elliottequineconnections/homepage.php)文件的顶部显示(我有一个图像),但文件中的php代码都没有执行。未执行的代码:
<?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>\'); ?>
我正在链接到主页。php使用错误的方式?