Skip to content

Instantly share code, notes, and snippets.

@talaia
talaia / tips-on-add_image_size-cropping.php
Last active March 20, 2016 17:14
Cropping problem with add_image_size
<?php
/*
We found a lot of problems when trying to crop images through the Wordpress' add_image_size function.
Finally, we found out that the stupidest solution was the good for us: we just deleted a dash
from the string at the first parameter. We had 'foto-portada' witch didn't work, and now, 'fotoportada', wokring well.
It's kinda weird.