Permalink doesn’t get displayed in Twitter button (Local WordPress problem?)

After sleeping over the problem I decided to the code and tried this: <a href=”https://twitter.com/share?url=&text=<?php the_title(); ?>: <?php echo urlencode(get_permalink($post->ID)); ?> &via=username&count=horizontal” class=”custom-tweet-button”>Tweet</a> All I can say is: it works as it should be. Next thing on my agenda is to incorporate a custom url shortener. PS: It’s worth a mention that if you use … Read more

Twitter links in widget don’t work?

Try this out. I went through and replaced ” with ‘ /* These prefixes and suffixes will display before and after the entire block of tweets. */ $prefix = “”; // Prefix – some text you want displayed before all your tweets. $suffix = “”; // Suffix – some text you want displayed after all … Read more

Mixing Tweets with Posts

I’ve done this with Twitter Tools. Basically it hooks up the blog to a Twitter feed, and for each new tweet creates a blog post. You can put twitter posts in a separate category (or add tags), and use that to style twitter-posts differently from regular posts, hide the comments field, whatever. Hope this helps … Read more

w3c validation problem – Twitter share button pulling content

You are sending text unencoded. urlencode that just like you do the permalink. <a class=”popup” href=”http://twitter.com/share?url=<?php echo urlencode(get_permalink($post->ID)); ?>&amp;text=<?php echo urlencode(the_content_limit(100, “”));?>”><img src=”http://zitatezumnachdenken.com/wp-content/uploads/2013/04/twittersmall.png” alt=”twitter”></a> Although, the_content_limit looks like it probably echos (based on your usage) instead of returning a string, which you will need. So I expect you will have to find that function and … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)