Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 119548

Once-I-Was-A-Developer on "[Plugin: Advanced Post List] [post-thumb] dimension"

$
0
0

Hello,

in
includes/class/APLCore.php:2287

if (current_theme_supports('post-thumbnails'))
{
$arr = wp_get_attachment_image_src(
get_post_thumbnail_id($page->ID), 'single-post-thumbnail');
$str = str_replace("[post_thumb]",
$arr[0],
$str);
}

Why "single-post-thumbnail" as second parameter of wp_get_attachment_image_src?

If your theme does not have that "single-post-thumbnail" size defined , all you get is a huge image :-)

I would change it in "thumbnail" or even better add parameter support to define the size in [post-thumb] shortcode.

http://wordpress.org/extend/plugins/advanced-post-list/


Viewing all articles
Browse latest Browse all 119548

Trending Articles