我真的不知道那裏的>
正下方的鳴叫按鈕是來自:這個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();
是一個WordPress插件的功能。
這是它的輸出:
<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-'不在頁面源中的任何位置。 – 2011-05-07 14:10:56
'tweetbutton()'看起來像什麼?有可能它正在返回'>'。 – Oded 2011-05-07 14:11:15