From ec1cd90dca735c5ddeeab5bb57407ece85fbac77 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 11 Oct 2016 16:28:34 -0400 Subject: [PATCH] Update import for blog images. Setting the sive to medium. --- controllers/BlogImageImport.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/BlogImageImport.php b/controllers/BlogImageImport.php index b1d4e6c..67f1f33 100644 --- a/controllers/BlogImageImport.php +++ b/controllers/BlogImageImport.php @@ -273,7 +273,7 @@ if ($imagesKey) { var_dump($imagesKey); - $newImage = wp_get_attachment_image_src($imagesKey, 'full'); + $newImage = wp_get_attachment_image_src($imagesKey, 'medium'); // need to replace the src tags in content with the new image tags $caption = str_replace( 'src="' . $srcMatch[1] . '"', @@ -286,9 +286,9 @@ } } } - //echo '
'.htmlspecialchars($caption).'
'; + echo '
caption: '.htmlspecialchars($caption).'
'; + echo '
content: '.htmlspecialchars($content).'
'; //exit; - echo '
'.htmlspecialchars($content).'
'; echo ''; $updatePost = array( 'ID' => $post->ID, -- 2.17.1