2012-12-30 143 views
1

即时编辑一个wordpress主题为我自己的个人网站。这个页面是为了一个博客而发生的,当你点击'阅读更多'或博客标题时,它会在单独的页面中打开该博客阅读。然而,当我点击其中两件事情我得到以下信息:php链接到另一个页面

服务器错误检索 mywebsite/WordPress的/ P = 20,而该网站遇到错误。它可能因维护而关闭,或者 配置不正确。以下是一些建议:稍后重新加载此网页 页面。 HTTP错误500(内部服务器错误):在服务器试图完成请求时遇到意外的 条件。

它以前工作之前,所以我知道与主题一起工作的代码。继承人的代码:

<div class="box"> 
<?php while (have_posts()) : the_post(); ?> 
     <article> 
      <h2><a href="<?php esc_url(the_permalink()); ?>"<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2> 
      <h7>BY LOUIS MOORE ON</h7> <time datetime="<?php the_time('Y-m-d'); ?>" pubdate><?php the_date(); ?> <?php the_time(); ?></time><?php the_content(); ?> 
<a href="<?php esc_url(the_permalink()); ?>"/><h8>READ MORE</a></h8> </br> 
</br><div class="h9"></div> 
</article></br></br></br> 
<?php endwhile; ?> 

</div> 

IM不是gretest在PHP和我还没有真正改变它比的东西,如其他的原始形式“路易·摩尔”的第二个div“更多阅读”和</br>

+1

检查你的PHP错误日志服务器上。这应该提供有关问题发生位置的信息。 –

+0

@NRohler我该怎么做? – Louismoore18

+0

通常,Web主机通过管理仪表板提供该服务。您应该可以访问那里的Web服务器日志。 – didierc

回答

1

HTML代码有几个错误。也许这就是问题所在。

你可以试试这个:

<div class="box"> 
    <?php while (have_posts()) : the_post(); ?> 
    <article> 
    <h2><a href="<?php esc_url(the_permalink()); ?>"> <?php the_title(); ?>" rel="bookmark"><?php the_title(); ?> </a></h2> 
    <h7>BY LOUIS MOORE ON</h7> 
    <time datetime="<?php the_time('Y-m-d'); ?>"> pubdate><?php the_date(); ?> <?php the_time(); ?></time><?php the_content(); ?> 
    <a href="<?php esc_url(the_permalink()); ?>"> </a> 
    <h8>READ MORE</a></h8> 
    <br /><br /> 
    <div class="h9"></div> 
    </article><br /><br /><br /> 
    <?php endwhile; ?> 
</div> 
相关问题