我一直在試圖解決這些錯誤谷歌代碼段測試。我一直在尋找single.php文件,但似乎無法糾正它。錯誤:至少必須爲HatomEntry設置一個字段
hatom-entry:
Error: At least one field must be set for HatomEntry.
Error: Missing required field "entry-title".
Error: Missing required field "updated".
Error: Missing required hCard "author".
Error: At least one field must be set for HatomEntry.
Error: Missing required field "entry-title".
Error: Missing required field "updated".
Error: Missing required hCard "author".
這裏是我的single.php代碼:
<?php
/* Small Business Theme's Single Page to display Single Page or Post
Copyright: 2012-2013, D5 Creation, www.d5creation.com
Based on the Simplest D5 Framework for WordPress
Since Small Business 1.0
*/
get_header(); ?>
<div id="content">
<?php if (have_posts()) while (have_posts()) : the_post(); ?> <h3 class="subtitle"><?php echo get_post_meta($post->ID, 'sb_subtitle', 'true'); ?></h3>
<h1 class="page-title"><?php the_title(); ?></h1>
<p class="postmetadataw">Posted by: <?php the_author_posts_link(); ?> | on <span class="post_date"><?php the_time('F j, Y'); ?></p>
<div class="content-ver-sep"> </div>
<div class="entrytext"><?php the_post_thumbnail('category-thumb'); ?>
<?php the_content(); ?>
<div class="clear"> </div>
<div class="up-bottom-border">
<p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?> <?php the_tags('<br />Tags: ', ', ', '<br />'); ?></p>
<?php wp_link_pages(array('before' => '<div class="page-link"><span>' . 'Pages:' . '</span>', 'after' => '</div>')); ?>
<div class="content-ver-sep"> </div>
<div class="floatleft"><?php previous_post_link('« %link (Previous Post)'); ?></div>
<div class="floatright"><?php next_post_link('(Next Post) %link »'); ?></div><br />
<div class="floatleft"><?php previous_image_link(false, '« Previous Image'); ?></div>
<div class="floatright"><?php next_image_link(false, 'Next Image »'); ?></div>
</div></div>
<?php endwhile;?>
<!-- End the Loop. -->
<?php comments_template('', true); ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>