WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
[Plugin: WordPress Popular Posts] Including Tweet Button in WordPress Popular Posts (1 post)

  1. itsalltech1
    Member
    Posted 3 years ago #

    Hello. I'm trying to incorporate the Tweet Button on WordPress Popular Posts, but when clicking the button, it says there is an invalid URL. The code I'm using for it:

    <iframe allowtransparency="true" frameborder="0" scrolling="no"
            src="http://platform.twitter.com/widgets/tweet_button.html?url=<?php echo urlencode(get_permalink($post->ID)); ?>&via=itsalltech&text=<?php wp_title(''); ?> | <?php bloginfo('name'); ?>"
            style="width:130px; height:50px;">
    </iframe>

    [Please post code snippets between backticks or use the code button.]

    Any ideas? Thanks.

    http://wordpress.org/extend/plugins/wordpress-popular-posts/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic