Last active
December 15, 2015 09:49
-
-
Save stellarcowboy/5240867 to your computer and use it in GitHub Desktop.
WordPress: Pass post-meta image URL to processor for thumbnails
This file contains 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
<?php $image_grabbed = substr_replace(get_post_meta($post->ID,{field_key},true), '-150x150', -4, 0); ?> | |
<?php echo $image_grabbed;?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment