2011-05-07 3 views
2

정말 바로 트윗 버튼 아래 >가에서 오는 아무 생각이 :이 HTML 닫는 괄호는 어디서 오는가?

http://alexchen.info/nojokethistime/

코드 :

 <?php while (have_posts()) : the_post(); ?> 
      <div class="content-block-2"> 
       <h2><?php the_title(); ?></h2> 
       <?php the_content(); ?> 

       <div id="photo-credits"> 
        <?php _e('Photo Credits: '); ?><a href="<?php echo get_post_meta($post->ID, 'rw_link', true); ?>"><?php echo get_post_meta($post->ID, 'rw_user', true); ?></a> 
       </div> 

       <?php if ( $wp_query->max_num_pages > 1) : ?> 
        <div id="prev"><?php next_posts_link(__('&larr; previous', 'twentyten')); ?></div> 
        <div id="social-buttons"> 
         <div id="tweet-button"> 
          <?php echo tweetbutton(); ?> 
         </div> 
         <div id="fb-share"><?php if (function_exists('fbshare_manual')) echo fbshare_manual(); ?></div> 
         <div id=fb-like><iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:60px"></iframe></div> 
        </div> 
        <div id="next"><?php previous_posts_link(__('next &rarr;', 'twentyten')); ?></div> 
       <?php endif; ?> 
      </div> 
     <?php endwhile; ?> 

편집 : tweetbutton();는 워드 프레스 플러그인의 함수이다.

     <div id="tweet-button"> 
          <div id="tweetbutton68m" class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Falexchen.info%2Fnojokethistime%2Ftaken-away%2F&amp;text=Taken%20Away&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Falexchen.info%2Fnojokethistime%2Ftaken-away%2F" class="twitter-share-button" style="width:55px;height:22px;background:transparent url('http://alexchen.info/nojokethistime/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat 0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>> 
+0

당신을 그 오른쪽 코드 발췌 확신에있다 : 여기에 마크 업 렌더링처럼 보이는 무엇인가? 전혀 다른 것처럼 보입니다 ... 실제로, 나는 페이지 상단의 div에있는'post-'가 페이지 소스의 어느 곳에도 있지 않기 때문에 올바른 페이지조차 맞지 않는다고 확신합니다. –

+1

'tweetbutton()'은 어떻게 생겼습니까? '>'이 반환 될 가능성이 있습니다. – Oded

답변

3

그것은 어딘가에 <?php echo tweetbutton(); ?> 내부에서 온다 :

은 출력됩니다. 거기에 뭐가 들어 있니?

편집 된 문제의 tweetbutton 기능의 출력을 참조하십시오

Tweet</a></div>> 

이중 >>

2

tweetbutton() 인쇄 &gt;처럼 보인다.

<div id="tweetbutton68m" class="tw_button" style=""> 
... 
</div>&gt; 
2

코드에있는 것 같습니다. <?php echo tweetbutton(); ?>입니다.

<div id="tweet-button"> 
    <!-- begin <?php echo tweetbutton(); ?> --> 
    <div id="tweetbutton68m" class="tw_button" style=""> 
    <a href="..." class="..." style="..."> 
     Tweet 
    </a> 
    </div>> 
    <!-- ^^ end <?php echo tweetbutton(); ?> --> 
</div> 

닫는 div 후 추가 >를 참조하십시오 : 당신이 링크 된 페이지의 HTML 소스 코드를 볼 때이 참조합니다 (HTML 주석은 명확성을 위해 내 자신 또한있다).

나중에 참조 할 수 있습니다. 웹 브라우저에서 웹 페이지의 소스를보고 코드 내에있는 >> 텍스트를 검색하면 쉽게 알 수 있습니다.

0

내부에서 오는 것 같습니다. tweetbutton().

<div class="tw_button" id="tweetbutton68m"> 
    <iframe (bunch of stuff)></iframe> 
</div>&gt; 

을 그리고 >의 코드는, end (&gt;)

관련 문제