WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Post List
[resolved] [post-thumb] dimension (5 posts)

  1. Once I Was A Developer
    Member
    Posted 1 year ago #

    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/

  2. butcher-pl
    Member
    Posted 1 year ago #

    I already tried to get dev EkoJr to fix it but he skipped this one and closed my topic :/ Its really a shame...its a key feature.

    http://wordpress.org/support/topic/plugin-advanced-post-list-list-doesnt-grab-thumnail-in-311-grabs-medium-i-think?replies=15

  3. butcher-pl
    Member
    Posted 1 year ago #

    Great solution! it actually works :D

  4. thirdpotato
    Member
    Posted 1 year ago #

    I'd like to change the thumbnail size too, but I'm not exactly sure how one would add parameter support; or what to change in "thumbnail" or where?

  5. butcher-pl
    Member
    Posted 1 year ago #

    as Once-I-Was-A-Developer said. Just change 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);
    }

    'single-post-thumbnail' to 'thumbnail'

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.