Alex Barber | Digital Artist

time to push the pixels

WordPress and MultiPostThumbnails: Get image URL

How to add Multiple Featured Images in WordPress


$imageid = MultiPostThumbnails::get_post_thumbnail_id('post', 'special-preview', $post->ID);
$imageurl = wp_get_attachment_image_src($imageid,'large');

$imageurl[0]

Next Post

Previous Post

© 2024 Alex Barber | Digital Artist