정말 바로 트윗 버튼 아래 >
가에서 오는 아무 생각이 :이 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(__('← 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)); ?>&layout=standard&show_faces=false&width=450&action=like&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 →', '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&text=Taken%20Away&related=&lang=en&count=horizontal&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>>
당신을 그 오른쪽 코드 발췌 확신에있다 : 여기에 마크 업 렌더링처럼 보이는 무엇인가? 전혀 다른 것처럼 보입니다 ... 실제로, 나는 페이지 상단의 div에있는'post-'가 페이지 소스의 어느 곳에도 있지 않기 때문에 올바른 페이지조차 맞지 않는다고 확신합니다. –
'tweetbutton()'은 어떻게 생겼습니까? '>'이 반환 될 가능성이 있습니다. – Oded