WordPress Popular Posts
Including Tweet Button in WordPress Popular Posts (1 post)

  1. itsalltech1
    Posted 5 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;">

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

    Any ideas? Thanks.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Popular Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic