我真的不知道tweet按钮下面的>是从哪里来的:
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();是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&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>>

最佳答案

它来自内部的某个地方。里面有什么?
请参见编辑问题中<?php echo tweetbutton(); ?>函数的输出:

Tweet</a></div>>

双倍tweetbutton

09-18 01:32