Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Shazzad Hossain Khan

    (@sajib1223)

    Well that can be achieved. Use custom field to set the small thumbnail url. Our plugins support displaying custom field value. So, after saving the thumbnail url into custom field (if you have used “thumbnail” as the custom field name), use – <img src="[post_meta key='thumbnail']" /> within the loop, like following –

    [posts]
    [post_title]
    <img src="[post_meta key='thumbnail']" />
    [/posts]

    Hope this helps.

    I have this problem too. Tried [post_meta key=’thumbnail’], but this gives me nothing.

    I would like to have a list with clickable thumbnails.

    So far I have:

    [posts]
    <div id="article">
         <div id="artimg"><a href="[post_permalink]"><img src="???" width="300" height="187"/></a></div>
         <div id="art-txt"><header><h2><a href="[post_permalink]">[post_title]</a></h2></header>
         <div>[excerpt]</div>
    <div class="clr"> </div>
    </div>
    </div>
    [/posts]

    And for style:

    .clr {clear:both; padding:0; margin:0; width:100%; font-size:0; line-height:0;}
    #article {padding:20px;}
    #artimg { line-height: 0; margin:10px; float:left; border:1px solid #8b8b8b; }
    #art-txt { width: 700px ; margin: 5px;}

    What to put for ??? marks as an image source?

    Plugin Author Shazzad Hossain Khan

    (@sajib1223)

    @rubidze, [post_meta key='thumbnail'] is equivalent to get_post_meta( null, 'thumbnail', true ). Please note, here thumbnail isn’t any special text or callback, rather it’s just a name of custom field. So you have to check if your posts have a value with custom field (meta data) thumbnail, which is an image src.

    This could be used like –
    <a href="[post_permalink]"><img src="[post_meta key='thumbnail']" width="300" height="187"/></a>

    If you want to display the featured thumbnail of the post, try –
    <a href="[post_permalink]">[post_thumbnail]</a>

    Thanks for your quick response!
    [post_thumbnail width=”300″ height=”187″]
    did the trick for me. Without width and height parameters the featured image size was way too big. Image original size perhaps.

    Plugin Author Shazzad Hossain Khan

    (@sajib1223)

    You can also use size property. ex: [post_thumbnail size="post-thumbnail"] or [post_thumbnail size="thumbnail"]

    What is the difference between post-thumbnail and thumbnail?

    Anyway, I understand that WP generates copies of different sizes of each featured image. Which of those parameters refer to which size?

    Plugin Author Shazzad Hossain Khan

    (@sajib1223)

    ‘post-thumbnail’ // size defined by theme of plugin
    ‘thumbnail’ // (default 150px x 150px max)
    ‘medium’ // (default 300px x 300px max)
    ‘large’ // (default 640px x 640px max)
    ‘full’ // Original image resolution (unmodified)

    If you visit WP Admin -> Setting -> Media – you will be able to changed the thumbnail, medium and large sizes.

    Thanks! This cleared up few things for me. Keep up the good work!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘add image to list’ is closed to new replies.