konuya girişi engelleme
2
●297
- 21-06-2013, 00:48:58Üyeliği durdurulduresme konu linki verilmiş ahref ile o yüzden tıklayınca konuya gidiyor.
Resimlere verilen (img src) linkleri resim linki olarak değiştirirsen olur.
Kodları görmeden kimse bir şey diyemez bu şekilde sana.
<a href="<?=the_permalink()?> şeklindeki bağlantılarını, resimleri nasıl çekiyotsan (özel alan mı yoksa öne çıkartılmış görsel mi) artık her neyse o şekilde linklendirmen gerekiyor teker teker temada hangi bölümlere konu linki verildiyse. - 22-06-2013, 22:35:32a href linklerini kaldırdım ama yine de birşey değilmedi
temanın index.php kodları
<?php get_header(); ?> <?php $shortname = "neue"; ?> <div id="content"> <div id="content_inside"> <?php global $wp_query; $args = array_merge( $wp_query->query, array( 'posts_per_page' => 12 ) ); query_posts( $args ); $x = 0; while (have_posts()) : the_post(); ?> <?php $box_type = ''; ?> <?php if($x == 2 || $x == 5 || $x == 8 || $x == 11 || $x == 14 || $x == 17 || $x == 20 || $x == 23 || $x == 26|| $x == 28 || $x == 31 || $x == 34 || $x == 37 || $x == 40 || $x == 43 || $x == 46 || $x == 49 || $x == 52 || $x == 55 || $x == 58 || $x == 61 || $x == 64) { ?> <?php $box_type .= ' home_post_box_last'; ?> <?php } ?> <?php if($x == 2 || $x == 5 || $x == 8 || $x == 11 || $x == 14 || $x == 17 || $x == 20 || $x == 23 || $x == 26|| $x == 28 || $x == 31 || $x == 34 || $x == 37 || $x == 40 || $x == 43 || $x == 46 || $x == 49 || $x == 52 || $x == 55 || $x == 58 || $x == 61 || $x == 64) { ?> <?php $box_type .= ' home_post_box_tablet_last'; ?> <?php } ?> <div class="home_post_box<?php echo $box_type; ?>" onClick="location.href='<?php the_permalink(); ?>'"> <?php the_post_thumbnail('home-image'); ?> <div class="home_post_text"> <h3><?php the_title(); ?></h3> </div><!--//home_post_text--> </div><!--//home_post_box--> <?php if($x == 2 || $x == 5 || $x == 8 || $x == 11 || $x == 14 || $x == 17 || $x == 20 || $x == 23 || $x == 26|| $x == 28 || $x == 31 || $x == 34 || $x == 37 || $x == 40 || $x == 43 || $x == 46 || $x == 49 || $x == 52 || $x == 55 || $x == 58 || $x == 61 || $x == 64) { ?> <div class="desktop_clear"></div> <?php } ?> <?php if($x == 2 || $x == 5 || $x == 8 || $x == 11 || $x == 14 || $x == 17 || $x == 20 || $x == 23 || $x == 26|| $x == 28 || $x == 31 || $x == 34 || $x == 37 || $x == 40 || $x == 43 || $x == 46 || $x == 49 || $x == 52 || $x == 55 || $x == 58 || $x == 61 || $x == 64) { ?> <div class="tablet_clear"></div> <?php } ?> <?php $x++; ?> <?php endwhile; ?> <div class="clear"></div> </div><!--//content_inside--> <div class="clear"></div> <div class="load_more_cont"> <div align="center"><div class="load_more_text"> <?php ob_start(); next_posts_link('<img src="' . get_bloginfo('stylesheet_directory') . '/images/loading-button.png" />'); $buffer = ob_get_contents(); ob_end_clean(); if(!empty($buffer)) echo $buffer; ?> </div></div> </div><!--//load_more_cont--> <?php wp_reset_query(); ?> </div><!--//content--> <?php get_footer(); ?>tpl-blog.php kodları
<?php /* Template Name: Blog */ ?> <?php get_header(); ?> <div id="content"> <?php get_sidebar(); ?> <div id="content_inside"> <?php $args = array( 'category_name' => 'blog', 'post_type' => 'post', 'posts_per_page' => 4, 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1) ); $x = 0; query_posts($args); while (have_posts()) : the_post(); ?> <?php $box_type = ''; ?> <?php if($x == 3 || $x == 7 || $x == 11 || $x == 15 || $x == 19 || $x == 23 || $x == 27 || $x == 31 || $x == 35 || $x == 39 || $x == 43 || $x == 47) { ?> <?php $box_type .= ' home_blog_box_last'; ?> <?php } ?> <?php if($x == 3 || $x == 7 || $x == 11 || $x == 15 || $x == 19 || $x == 23 || $x == 27 || $x == 31 || $x == 35 || $x == 39 || $x == 43 || $x == 47) { ?> <?php $box_type .= ' home_blog_box_tablet_last'; ?> <?php } ?> <div class="home_post_box home_blog_box<?php echo $box_type; ?>"> <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('blog-image'); ?></a> <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4> <p><?php echo ds_get_excerpt('280'); ?></p> </div><!--//home_blog_box--> <?php if($x == 3 || $x == 7 || $x == 11 || $x == 15 || $x == 19 || $x == 23 || $x == 27 || $x == 31 || $x == 35 || $x == 39 || $x == 43 || $x == 47) { ?> <div class="desktop_clear"></div> <?php } ?> <?php if($x == 1 || $x == 3 || $x == 5 || $x == 7 || $x == 9 || $x == 11 || $x == 13 || $x == 15 || $x == 17 || $x == 19 || $x == 21 || $x == 22) { ?> <div class="tablet_clear"></div> <?php } ?> <?php $x++; ?> <?php endwhile; ?> <div class="clear"></div> </div><!--//content_inside--> <div class="clear"></div> <div class="load_more_cont"> <div align="center"><div class="load_more_text"> <?php ob_start(); next_posts_link('<img src="' . get_bloginfo('stylesheet_directory') . '/images/loading-button.png" />'); $buffer = ob_get_contents(); ob_end_clean(); if(!empty($buffer)) echo $buffer; ?> </div></div> </div><!--//load_more_cont--> <?php wp_reset_query(); ?> </div><!--//content--> <?php get_footer(); ?>