Created
March 3, 2014 06:01
-
-
Save andreisebastianc/9319255 to your computer and use it in GitHub Desktop.
Hackish approach for rendering images on WP mobile themes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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