Barattalo
Collection of WordPress plugins, code snippets, tools and posts for developers and happy makers
Social buttons: the fastest way for WordPress, without plugins
NOTE: the code in this post is written for WordPress but you can easily translate it in any language. You’re here…
Optimize WordPress, a long list of tips
In the above image you can see your WordPress before reading this post, and after the optimizations you will make…
Limit the number of categories for posts in WordPress
CHOOSE ONLY ONE CATEGORY WORDPRESS If you need to limit the number of categories used by the authors of your…
Remove archive pages in WordPress, how to
I think that in most blogs (that is not all) archive pages are redundant content and there’s no need to…
WordPress anyone can register, but no email confirmation
Many times it has happened to me that my WordPress installation properly send emails using wp_mail directly, specifing also the…
WordPress 4.1.1 is available! Please update now.
Sometimes you find messages like “WordPress 4.1.1 is available! Please update now.“, in italian it is: “È disponibile WordPress 4.1.1! Aggiorna…
Fix for WP SUPER CACHE home not refreshing
WP SUPER CACHE is one of the most used WordPress plugin for cache, but probably there is a small bug…
Add client logo to wordpress login
If you want to add your logo or the logo of your client above the wordpress login you have to…
Force WordPress to use Italian date
To get date with get_the_time in Italian you should specify italian (it_IT) in the WP_LANG constamt in your wp_config.php file.…
VK Social metrics, Top Stories plugin now with support for Vkontakte
VK SOCIAL METRICS VK.COM, also known as Vkontakte, is an important russian social network, which has over 270 million users.…
Get Google Plus Follower count from PHP in WordPress
I’ve found a similar function to retrieve the number of followers of a Google Plus page, inside WordPress, but it…
How to Fan Gate a page in wordpress?
You can use my plugin, which is totally custom for layout (you can change the image of the pop up…
8 rules to become a better developer
I’ve found this article by Shawn McCool and I think it’s good for every developer, if you’re an expert probably…
Text 2 Mind Map a simple mind mapping online tool
I’ve found this tool to make online mind maps, just copy and paste the text with terms (properly indented) to…
Reordering rows records on a mysql table with PHP
This PHP function lets you reorder records on a table when you have a field used for save the position.…
Scraping content with PHP as if it was jQuery
Building a spider or a bot needs some knowledge of regular expressions, you must know and use preg_match or preg_match_all…
Embedding images in HTML or CSS with PHP
This small function returns an encoded string to embed images, inline, inside your html/css code and reduce the number of…
Block junk emails, spammers and temporary emails
If you need an Email Validator Function, consider this version that includes also the check against common temporary mail services…
Get instagram data without official api in PHP
Instagram has an official API to interact with its database of images and users. If you have enough time to…
How to build a spider… uh, well an email scraper
What is a spider? A spider is a program that automatically navigates web pages to find informations. These informations can…
MySQL fulltext search always empty
If you’ve just switched to FULLTEXT indexes and you’ve just started playing with MATCH... AGAINST syntax, but you always get…
Push notifications from php to Android devices with Minibots Class
More than two years ago I wrote a post about sending push notifications from php to an iOS app called…
Programming with CodeIgniter MVC
Codeigniter (aka CI) is an MVC framework that helps you building websites. You don’t know what is MVC? Bad. It’s…
Make a cron job with IFTTT
Cron is a software utility, a time-based job scheduler in Unix-like computer operating systems. People who set up and maintain…
Refresh a Google Adsense banner with Javascript
Often bloggers and site owners use galleries to have a greater number of pages, adding pages means adding clicks. Each…
User agent detect with PHP
Small PHP code snippet to make a quick detect if the browser that requests your page is on a mobile…
Detect if is mobile with Javascript, read user agent
How to detect if your user is using a mobile device in Javascript? You can do it by checking the…
Top Social Stories plugin and widget for WordPress
Just released a plugin for WordPress that can be used to track your posts on Facebook, Twitter and Google+. When…
How to import comments from WordPress to DISQUS
Disqus is a very nice tool to handle comments better and probably I will add it here soon, but I’ve…