Forked from agragregra/WordPress Magic Field Multiple Images Resize and Crop
Created
January 8, 2019 14:40
-
-
Save w-perspective/c9e87617042948029d62abe78ff50afb to your computer and use it in GitHub Desktop.
WordPress Magic Field Multiple Images Resize and Crop
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
| <?php | |
| $images = getFieldOrder('img'); | |
| $i = 0; | |
| foreach($images as $image) { | |
| $i++; | |
| $nuevos = array ("w" => 300, "h" => 200, "zc" => 1, "q" => 100); | |
| $image_thumb = get_image('img', 1, $i, 0, NULL, $nuevos); | |
| $image_link = get_image('img', 1, $i, 0, NULL); ?> | |
| <?php echo $image_thumb; ?><br/> | |
| <?php echo $image_link; ?><br/><br/> | |
| <? }; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment