WordPress博客赢得';t显示文章标题、元数据或评论

WordPress博客赢得';t显示文章标题、元数据或评论,wordpress,Wordpress,我相信这是一个简单的修复,但我不是一个程序员 3、4年前,我为我的一个客户编写了一个WordPress网站。他们要求在他们的网站上添加一个博客 有几件奇怪的事情发生了,我不完全清楚为什么 如果您访问: 您可以看到它没有显示文章标题或元数据。只是文章的内容 此外,请访问: 所以,这很有趣。在这里,您可以看到文章标题并编辑此链接。文章标题没有链接,但可以修复。有趣的是,我还没有一个作者文件。所以,我不确定为什么它在这里看起来更正确,但不会在第一个链接上显示文章标题 以下是我的循环代码: ` &l

我相信这是一个简单的修复,但我不是一个程序员

3、4年前,我为我的一个客户编写了一个WordPress网站。他们要求在他们的网站上添加一个博客

有几件奇怪的事情发生了,我不完全清楚为什么

如果您访问:

您可以看到它没有显示文章标题或元数据。只是文章的内容

此外,请访问:

所以,这很有趣。在这里,您可以看到文章标题并编辑此链接。文章标题没有链接,但可以修复。有趣的是,我还没有一个作者文件。所以,我不确定为什么它在这里看起来更正确,但不会在第一个链接上显示文章标题

以下是我的循环代码:

`   <div id="content">
        <div id="content_container">

       <!-- Start the Loop. -->
 <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

 <!-- Test if the current post is in category 3. -->
 <!-- If it is, the div box is given the CSS class "post-cat-three". -->
 <!-- Otherwise, the div box is given the CSS class "post". -->

 <?php if ( in_category('3') ) { ?>
           <div class="post-cat-three">
 <?php } else { ?>
           <div class="post">
 <?php } ?>


 <!-- Display the Title as a link to the Post's permalink. -->

 <h2><?php the_title(); ?></h2>


 <!-- Display the date (November 16th, 2009 format) and a link to other posts by this posts author. -->

 <small><?php the_time('F jS, Y') ?> by <?php the_author_posts_link() ?></small>


 <!-- Display the Post's content in a div box. -->

 <div class="entry">
   <?php the_content(); ?>
 </div>


 <!-- Display a comma separated list of the Post's Categories. -->

 <p class="postmetadata">Posted in <?php the_category(', '); ?></p>
 </div> <!-- closes the first div box -->


 <!-- Stop The Loop (but note the "else:" - see next line). -->

 <?php endwhile; else: ?>


 <!-- The very first "if" tested to see if there were any Posts to -->
 <!-- display.  This "else" part tells what do if there weren't any. -->
 <p>Sorry, no posts matched your criteria.</p>


 <!-- REALLY stop The Loop. -->
 <?php endif; ?>
</div>`
`
通过

抱歉,没有符合您标准的帖子

`
在您提供的第一个链接上,您提供的HTML看起来没有被使用。您是否可以进行测试编辑以确保/blog页面实际使用您创建的循环?我看到一个空的.post头div被输出,但我在循环中的任何地方都看不到它。

在您提供的第一个链接上,看起来您提供的HTML没有被使用。您是否可以进行测试编辑以确保/blog页面实际使用您创建的循环?我看到输出了一个空的.post标题div,但我在循环中的任何地方都看不到它。

此外,如果您转到此处,您将看到红色的注释标题。这应该是加载Facebook评论。但事实并非如此。我已经尝试了4到5个不同的Facebook评论插件,但都没有显示出来。我猜这是一个类似的相关问题,因为一切都与不显示有关。任何帮助都将不胜感激!此外,如果您转到这里:您将看到红色的注释标题。这应该是加载Facebook评论。但事实并非如此。我已经尝试了4到5个不同的Facebook评论插件,但都没有显示出来。我猜这是一个类似的相关问题,因为一切都与不显示有关。任何帮助都将不胜感激!