2014-02-10 1 views
-2

누구든지 내 코드를 도움이된다면 도움이 될 것입니다. 나는 라인 16에서이 오류를 계속하고있다. 언제나 나는 내 웹 사이트에서 오류가 발생하는 게시물을 엽니 다. 페이지가 정상적으로 작동하는 것 같습니다.구문 분석 오류 : 구문 오류, 예기치 않은 T_CLASS single.php on line 16

<?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(); ?> 

나는 이러한 오류 내 구조화 된 데이터를 해결하기 위해 노력 해왔다 :

hatom-feed 
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". 
+1

어떤 줄이 16인지 짐작할 필요가 없습니다. – PeeHaa

+0

필자는 16 행에''가 빠져 있습니다. – Duroth

+0

이것은 무엇입니까 ?? 닫지 않을 것 --->

답변

0

당신은 the_author_posts_link과의 긴밀한 PHP 섹션을하지 않았다. 사용해보기 :

<p class="postmetadataw">Posted by: <?php the_author_posts_link(); ?> | on <span class="post_date"><?php the_time('F j, Y'); ?></p> 
+0

감사합니다. 잘 했어 :) – user3293296

관련 문제