How to escape echo?
Do not use echo because WordPress has already defined it. So use it as given below: <?php the_post_thumbnail(); ?> <?php the_permalink(); ?> <?php the_title(); ?>
Do not use echo because WordPress has already defined it. So use it as given below: <?php the_post_thumbnail(); ?> <?php the_permalink(); ?> <?php the_title(); ?>
I would recommend rolling your own. Use the sharethis api or addthis. Then you can use get_permalink(); for the url parameter. function wpu_share() { $url = get_permalink(); $title = get_the_title(); $add_this=”st_url=””.esc_url( $url ).'”‘; ?> <span class=”st_facebook_large” <?php echo $add_this; ?> displayText=”Facebook”></span> <span class=”st_twitter_large” <?php echo $add_this; ?> displayText=”Tweet”></span> <span class=”st_linkedin_large” <?php echo $add_this; ?> displayText=”LinkedIn”></span> … Read more
You could use the plugin pie register http://wordpress.org/extend/plugins/pie-register/ Here you can enable invitation codes and require invitation code to register. Another plugin that allows tracking invitation codes is http://wordpress.org/extend/plugins/baw-invitation-codes/
Put everything between <script> & </script> in a separate file. Then use wp_enqueue_script with the correct path of the file & dependencies to false. After that you can use only <a href=”https://twitter.com/share” class=”twitter-share-button”>Tweet</a> to add the tweet button.
This should work just fine, because the functionality to share a website on Twitter should include the URL that you want your users to share. Keep in mind that the realtime Twitter-Searchfunction just shows recent results, not all of them, so the Link will never list all Tweets about your site. The additional information section … Read more
Text widget is only static text widget. You need to place link to current post on the end of the sharing link (and you have to urlencode it), so I don’t think that text widget will help you with your problem. The easiest solution to your problem will be adding these sharing links in your … Read more
Something similar happens on TNW site, this is the (custom, home build) plugin they use
Encode URL picked up by Digg Digg
This thread seems to answer your question http://swiftthemes.com/forums/showthread.php?1542-Social-Media-Icons-like-on-the-demo-page 1) Enable header ad 2) Insert some HTML to render the social media links and icons
Use conditional tags You can hook in a div for AddThis using conditional tags and WordPress or theme specific hooks from your functions file. Hook Buttons in Using Custom Function In this example, wp_footer function wpsites_function() { if ( is_single(array( 1, 2, 3, 4, 5 ) ) ) { echo ‘<div class=”addthis_native_toolbox”></div>’; }} add_action(‘wp_footer’, ‘wpsites_function’); … Read more