1. Halo Guest, pastikan Anda selalu menaati peraturan forum sebelum mengirimkan post atau thread baru.

{ask}gambar thumbnaail pada theme storewp,gak muncul??

Discussion in 'Wordpress' started by angger07, Feb 13, 2012.

  1. angger07

    angger07 Hero

    Joined:
    Jun 26, 2011
    Messages:
    652
    Likes Received:
    45
    Location:
    sumatra selatan
    Permisi gan..maaf kalau tulisan ini menggangu.saya hanya ingin menanyakan masalah setting pada theme dari om virtarich,
    biarpun saya sudah mengikuti petunjuknya tetap saja tidak keluar gambar thumbnail"catalog produk" pada theme saya:nangis::nangis::nangis:

    bagi yang pernah menggunakan STOREWP THEME besutan om virtarich mohon bantuannya dunk:nyerah:
    ane masih bener" awan masalah wordpress jadi.

    Permasalahannya setiap gambarnya di klik selalu keluar

    nie penampakannya
    View attachment 16409


    sudah ngubungin om virtarich tpi belum terjawab...mungkin lagy sibukk
     
  2. phauxie

    phauxie Ads.id Pro

    Joined:
    Nov 5, 2011
    Messages:
    272
    Likes Received:
    3
    ini pake hosting graris ya???
     
  3. frontpage7

    frontpage7 Newbie

    Joined:
    Jan 16, 2012
    Messages:
    11
    Likes Received:
    1
    itu karena hosting agan gak suport,bentrok ama file timthumb.php ,coba dikit modif aja gan,,,
    buka dasbor WP agan, appearance, editor, buka thumb.php baris ke 8 seperti dibawah...
    <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php echo $large_image_url[0]; ?>&amp;w=150&amp;h=160&amp;zc=2&amp;q=100" alt="<?php the_title(); ?>" width="150" height="160" /><?php } ?></a>

    terus direplace ama....
    <img src="<?php attachment_toolbox('thumbnail'); ?>"<?php } ?></a>
    klik update file

    kalo udah, buka functions.php scroll kebawah tambahin kode berikut,,,,
    <?php
    function attachment_toolbox($size = thumbnail) {

    if($images = get_children(array(
    'post_parent' => get_the_ID(),
    'post_type' => 'attachment',
    'numberposts' => 1,
    'post_status' => null,
    'post_mime_type' => 'image',
    ))) {
    foreach($images as $image) {
    $attimg = wp_get_attachment_image($image->ID,$size);
    $atturl = wp_get_attachment_url($image->ID);
    $attlink = get_attachment_link($image->ID);
    $postlink = get_permalink($image->post_parent);
    $atttitle = apply_filters('the_title',$image->post_title);



    echo '<a href="'.$postlink.'">'.$attimg.'</a>';

    }
    }
    }
    ?>

    klik update file...
    sekarang reload web agan,,,,
     
    angger07 likes this.

Share This Page