Setting the sive to medium.
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,