Benim dediğim şeklide var ama. Daha öncede bununla alakalı başka bir temada sorun yaşamıştım ve çözüme ulaşmıştık. Fakat bu temayla önceki tema arasında alaka kurup değişiklik yapamadım.
Alttaki kodda eski temadaki kod ve kategorideki son yazıları çekiyor:
<div class="singlebaslikana">Bu Kategorideki Diğer Haberler</div> <div class="singlebaslikortaana">
<?php $orig_post = $post;
global $post;
$categories = get_the_category($post->ID);
if ($categories) {
$category_ids = array();
foreach($categories as $individual_category) $category_ids[] = $individual_category->term_id;
$args=array(
'category__in' => $category_ids,
'post__not_in' => array($post->ID),
'posts_per_page'=> 9, // Number of related posts that will be shown.
'caller_get_posts'=>1
);
$my_query = new wp_query( $args );
if( $my_query->have_posts() ) {
echo '';
while( $my_query->have_posts() ) {
$my_query->the_post();?>
<div class="singlehaber"> <?php if( get_post_meta($post->ID, "Thumbnail", true) ): ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo get_post_meta($post->ID, "Thumbnail", true); ?>" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<a href="<?php the_permalink() ?>" rel="bookmark">
<img src="<?php bloginfo('template_url'); ?>/images/kirita.png" alt="<?php the_title(); ?>" /></a>
<?php endif; ?> <h2><a href="<?php the_permalink() ?>" rel="bookmark"> <?php if (strlen($post->post_title) > 100) {
echo mb_substr(the_title($before = '', $after = '', FALSE), 0, 50) . '...'; } else {
the_title();
} ?> </a></h2>
<div class="entry"> <a href="<?php the_permalink() ?>"><?php the_content_limit(70, ""); ?></a> </div> </div>
<?
}
echo '';
}
}
$post = $orig_post;
wp_reset_query(); ?>
</div> <div class="singlebaslikaltana"></div>
</div>
Ya burda şuan çok fazla kod var

Şimdi anlamaya çalışmakla uğraştırma beni. Site adresini pm at benzer konuları random yapıp çıkayım ben.