Flattr is a “social micro-payment system”, that allows you to make online payments, when you like an article, a blog, a project…
Looking at the Flattr documentation, the basic solution for WordPress.org blogs (hosted blogs) is to use the Flattr plugin. But the current version of the plugin (1.2.0) doesn’t work with WordPress 3.5.1. The Flattr button simply isn’t displayed.
So I’ve had to find an alternate solution, which was to simply create a WordPress function in my theme, and to call this function each time I want to add a Flattr button.
I’ve based my code on this post, but I’ve simplified it, as I didn’t need customization like multi-user handling.
So the final function, as used on my blog, is:
To use it, I simply use this code each time I want to add a button:
<?php if ( function_exists('fb_flattr_link') ) fb_flattr_link(); ?>
Like this post? Tip me with bitcoin!
If you enjoyed reading this post, please consider tipping me using Bitcoin. Each post gets its own unique Bitcoin address so by tipping you're not only making my continued efforts possible but telling me what you liked.