WordPresste öne çıkal görseli nasıl kaldırabilirim
18
●831
- 11-01-2013, 16:11:45Tamam. Şöyle bir dener misin? Öncesinde blog.php'nin orijinalini bir yere yedekle. Olmazsa index.php'yi isteyeceğim senden...
<?php /* Template Name: Blog */ ?> <?php get_header(); ?> <div id="casing"> <div class="incasing"> <div class="topbar"> <?php include (TEMPLATEPATH . '/searchform.php'); ?> </div> <div id="content"> <?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query('paged='.$paged); ?> <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <div class="title"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> </div> <div class="postmeta"> <span class="author">Ekleyen <?php the_author(); ?> </span> <span class="clock"> <?php the_time('M - j - Y'); ?></span> <span class="comm"><?php comments_popup_link('0 Comment', '1 Comment', '% Comments'); ?></span> </div> <div class="entry"> <?php the_excerpt(); ?> <div class="clear"></div> </div> </div> <?php endwhile; ?> <div class="clear"></div> <?php getpagenavi(); ?> <?php $wp_query = null; $wp_query = $temp;?> </div> <?php get_sidebar(); ?> <div class="clear"></div> </div> <div class="clear"></div> </div> <?php get_footer(); ?> - 11-01-2013, 16:19:31Tamam, o zaman dosyayı orijinal haline döndürün, ve index.php dosyasını göreyim.Derbederim68 adlı üyeden alıntı: mesajı görüntüle
- 11-01-2013, 16:23:47Dener misin?

<?php get_header(); ?> <?php if(get_option('shut_homelayout') == "blog") { ?> <div id="casing"> <div class="incasing"> <div class="topbar"> <?php include (TEMPLATEPATH . '/searchform.php'); ?> </div> <div id="content"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <div class="title"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> </div> <div class="postmeta"> <span class="author">Posted by <?php the_author(); ?> </span> <span class="clock"> <?php the_time('M - j - Y'); ?></span> <span class="comm"><?php comments_popup_link('0 Comment', '1 Comment', '% Comments'); ?></span> </div> <div class="entry"> <?php the_excerpt(); ?> <div class="clear"></div> </div> </div> <?php endwhile; ?> <div class="clear"></div> <?php getpagenavi(); ?> <?php else : ?> <h1 class="title">Not Found</h1> <p>Sorry, but you are looking for something that isn't here.</p> <?php endif; ?> </div> <?php get_sidebar(); ?> <div class="clear"></div> </div> <div class="clear"></div> </div> <?php } ?> <?php get_footer(); ?> <!-- Yandex.Metrika counter --> <script type="text/javascript"> (function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter19055296 = new Ya.Metrika({id:19055296, clickmap:true, trackLinks:true, accurateTrackBounce:true}); } catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks"); </script> <noscript><div><img src="//mc.yandex.ru/watch/19055296" style="position:absolute; left:-9999px;" alt="" /></div></noscript> <!-- /Yandex.Metrika counter --> - 11-01-2013, 16:28:56Derbederim68 adlı üyeden alıntı: mesajı görüntüle
<?php if ( has_post_thumbnail() ) { ?> <a href="<?php the_permalink() ?>"><img class="postimg" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php get_image_url(); ?>&h=200&w=470&zc=1" alt=""/></a> <?php } else { ?> <a href="<?php the_permalink() ?>"><img class="postimg" src="<?php bloginfo('template_directory'); ?>/images/dummy.png" alt="" /></a> <?php } ?>Çıkarılması gereken kod şuna benziyor. Tek tek tüm dosyalarda buna benzer satırları ara ve sil. Yapman gereken bu.
