Update import for blog images.
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 11 Oct 2016 20:28:34 +0000 (16:28 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 11 Oct 2016 20:28:34 +0000 (16:28 -0400)
Setting the sive to medium.

controllers/BlogImageImport.php

index b1d4e6c..67f1f33 100644 (file)
 
                                 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] . '"',
                             }
                         }
                     }
-                    //echo '<pre>'.htmlspecialchars($caption).'</pre>';
+                    echo '<pre>caption: '.htmlspecialchars($caption).'</pre>';
+                    echo '<pre>content: '.htmlspecialchars($content).'</pre>';
                     //exit;
-                    echo '<pre>'.htmlspecialchars($content).'</pre>';
                     echo '</div>';
                     $updatePost = array(
                         'ID'           => $post->ID,