I am really liking the new ability to use standard post thumbnails via the bfthumb layout gui. Is there a way to specify this preference via shortcode?
Thanks,
Chris
I am really liking the new ability to use standard post thumbnails via the bfthumb layout gui. Is there a way to specify this preference via shortcode?
Thanks,
Chris
Just in case my question wasn't clear... I would like to specify bfthumbs to use the "thumbnail" size post thumbnail (ie. the_post_thumbnail('thumbnail');) rather than use timthumb. The only way I see to do this currently is through the "bfthumbs layout" button. Can I instead specify this via a shortcode option? If not, does anyone know of a hack to accomplish this?
Thanks,
Chris
it was clear. This is not possible now, but it's a good idea, and I can implement that.
A tip is that the bfthumbs layout is exported with the page/template, so there's no need to recreate the layout if you use the wordpress export/import functionality.
Thanks for the feedback and suggestion.
For my needs it would be sufficient to have an option in the theme settings to use one of the post thumbnail sizes as the default for bfthumbs. The implementation I was hoping to achieve for this site is to set a generous sized thumbnail and resize via css if necessary for specific pages. The ideal would be to specify a specific post thumbnail size within the shortcode itself.
Great theme and documentation by the way.
I am thinking this can be done with a filter, possibly using a custom parameter as explained in the tips and tricks section. Does this sound doable to you? If so, I will look into it.
yes it can be done with a filter. Example:
function bfthumbs_custom($args, $atts) {
global $post;
if ($atts['wpthumb'] !== '') {
$args['image'] = get_the_post_thumbnail($post->ID, $atts['wpthumb']);
}
return $args;
}
add_filter('bfthumbs_query_args', 'bfthumbs_custom', 10, 2);
Add this code the the child theme functions.php and you can add a wpthumb paramter to the shortcode with the size of the thumbnail. See here for available sizes. The $args array is a bit different when it comes from the bfthumbs layout manager, but just dump the array to see how it's laid out.
Thanks! This is perfect.
You must log in to post.