kevgibs
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Meta Box] Retrieving image url from custom post typeThis has been resolved over on Stack Overflow. For anyone interested, see http://stackoverflow.com/questions/39195891/wordpress-meta-box-plugin-retrieving-image-url-from-custom-post-type?noredirect=1#comment65738735_39195891
Forum: Plugins
In reply to: [Meta Box] Define image sizes with PluploadIt could well be related to flexslider. I’ll look at that, thanks again.
Forum: Plugins
In reply to: [Meta Box] Define image sizes with PluploadBrilliant, thank you, I really appreciate that.
When I add:
add_image_size( 'flexslider-thumb', 167, 119 ); add_image_size( 'flexslider-main', 757, 454 );To functions.php, then use those size names in the flexslider code like this:
$images = rwmb_meta( 'swso_prodImage', 'type=image&size=flexslider-main'); foreach ( $images as $image ) { echo "<li><a href='{$image['full_url']}' title='{$image['title']}' rel='thickbox''><img src='{$image['url']}' width='{$image['width']}' height='{$image['height']}' alt='{$image['alt']}' /></a></li>"; }Then re-upload the images, it all works fine.
I do have another question though. The link to the full size image adds “/undefined” to the current page URL rather than actually linking to the full size image. Any ideas what could be causing this?
Viewing 3 replies - 1 through 3 (of 3 total)