• 23-07-2010, 15:45:48
    #1
    gdi
    Üyeliği durduruldu
    merhabalar arkadaslar.

    Simdi bir urun sayfamiz var ve orda urunun resmi (thumbnail) ve ismi geciyor. isme tikladiginda urunun sayfasina geciyor ama urunun resmine tikladigimizda resmin tam boyutunu gosteriyor, oysa ben isme tikladigimizdaki gibi resme tikladigimizda resmin ait oldugu yaziya gitmesini istiyorum


    Kod asagidadir;
    <div class="portfolio-item">
                    <?php 
                    if ($post_video != '') { 
                        echo('<a href="' . $post_video . '" class="thumbnail video portfolio-item-thumbnail">'); 
                    } else { 
                        echo('<a href="' . $post_image . '" class="thumbnail portfolio-item-thumbnail">'); 
                    } 
                    if ($post_thumbnail == '') {
                    ?>
                    <img src="<?php bloginfo('template_directory'); ?>/timthumb/timthumb.php?src=<?php echo($post_image); ?>&amp;w=150&amp;h=120&amp;zc=1" width="150" height="120" alt="" />
                    <?php
                    } else {
                    ?>
                    <img src="<?php echo($post_thumbnail); ?>" width="277" height="152" alt="" />
                    <?php
                    }
                    echo('</a>');
                    ?>
                    <h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
                    
                </div>

    Simdiden yardim edecek arkadasa tesekkurlerimi sunarim
  • 23-07-2010, 18:46:48
    #2
    gdi
    Üyeliği durduruldu
    arkadaslar yok mu yardim edecek ? kucuk resime tiklayinca o resmin ait oldugu konuya gitmesi lazinm, buyuk resim acilmamasi lazim
  • 23-07-2010, 18:48:33
    #3
    ⭐ EN UCUZ CHATGPT 5.5⚡
    hangi tema bu?
  • 23-07-2010, 19:03:16
    #4
    gdi
    Üyeliği durduruldu
    Cearti WP tema.

    http://themeforest.net/item/cearti/104401

    bunu satin almistim subat gibi wpnow da huex temasini aldigimda ( r10 da konusu mevcuttur), ama unuttmu hangi emaile kayit oldugumda oraya ve sifreyi bilmiyorum ondan dolayi destek de alamiyorum.
  • 23-07-2010, 19:09:35
    #5
    Üyeliği durduruldu
    <div class="portfolio-item">
    <?php
    if ($post_video != '') {
    echo('<a href="<?php the_permalink() ?>">');
    } else {
    echo('<a href="<?php the_permalink() ?>">');
    }
    if ($post_thumbnail == '') {
    ?>
    <img src="<?php bloginfo('template_directory'); ?>/timthumb/timthumb.php?src=<?php echo($post_image); ?>&amp;w=150&amp;h=120&amp;zc=1" width="150" height="120" alt="<?php the_title(); ?>" />
    <?php
    } else {
    ?>
    <img src="<?php echo($post_thumbnail); ?>" width="277" height="152" alt="<?php the_title(); ?>" />
    <?php
    }
    echo('</a>');
    ?>
    <h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>

    </div>
  • 23-07-2010, 19:16:17
    #6
    gdi
    Üyeliği durduruldu
    @TylerDurden, onu denemistim ama
    siteadi.com/category/<?php the_permalink() ?> linki cikiyor.

    bunun functions ile ilgili bir sey olabilecegini dusunuyorum.

    WP-admin bilgileri versem goz atarmisin ?
  • 23-07-2010, 20:56:14
    #7
    Üyeliği durduruldu
    en sade hali bu:

    <div class="portfolio-item">
    <a href="<?php the_permalink() ?>"><img src="<?php bloginfo('template_directory'); ?>/timthumb/timthumb.php?src=<?php echo($post_image); ?>&amp;w=150&amp;h=120&amp;zc=1" width="150" height="120" alt="<?php the_title(); ?>" /></a>
    <h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
    </div>

    resimleri nasıl eklediğinizi bilmediğim için, eğer bu kod hata verirse,

    <?php echo($post_image); ?>

    yerine

    <?php echo($post_thumbnail); ?>

    kodunu yazın. büyük ihtimalle ilkidir.

    iki halde de olmazsa, permalinkleri dediğiniz gibi tema kendisi değiştiriyordur. o kadarına bakamam, ücretli bir tema.
  • 24-07-2010, 10:53:03
    #8
    gdi
    Üyeliği durduruldu
    Hocam sade Hali oldu....


    cok cok minnetarim size. tesekkur ederim.