WordPress.org

Support

Support » Plugins and Hacks » Advanced Post List » [Resolved] [post-thumb] dimension

[Resolved] [post-thumb] dimension

  • 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 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [post-thumb] dimension’ is closed to new replies.
Skip to toolbar