Skip to content

Instantly share code, notes, and snippets.

@andreisebastianc
Created March 3, 2014 06:01
Show Gist options
  • Save andreisebastianc/9319255 to your computer and use it in GitHub Desktop.
Save andreisebastianc/9319255 to your computer and use it in GitHub Desktop.
Hackish approach for rendering images on WP mobile themes
function get_post_thumbnail($name){
if (!estimate_its_tablet()) {
the_post_thumbnail('mobile-'.$name);
return ;
} else {
the_post_thumbnail('tablet-'.$name);
return ;
}
the_post_thumbnail($name);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment