Sorry, i might be stupid but i don’t get it!
<!-- column and category 1 -->
<?php $the_cat1 = get_cat_ID('experimental');
$feature_post = get_posts( 'cat='.$thecat1.'&numberposts=1' );
foreach( $feature_post as $post ) : setup_postdata( $post );
foreach((get_the_category()) as $category) {
$currentcat = $category->cat_name . ' ';
if ($currentcat == $latestcat){ ?>
<ul class="latest" id="latestcat">
<li class="cat-title"><h2 class="latest"> <?php echo $currentcat; ?> </h2></li>
<?php } else { ?>
<ul class="latest">
<li class="cat-title"><h2 class="latest"> <?php echo $currentcat; ?> </h2></li>
<?php }
}
endforeach;
$the_cat1 = get_cat_ID('experimental');
$feature_post = get_posts( 'cat='.$thecat1.'&numberposts=3' );
foreach( $feature_post as $post ) : setup_postdata( $post ); ?>
<li class="news-element">
<ul>
<li class="list-title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>
<li class="latest-excerpt"><?php the_excerpt(); ?></li>
</ul>
</li>
<?php endforeach; ?>
</ul>
For instance, my cat1’s name is “experimental”
so i changed your script-suggestion to:
$the_cat1 = get_cat_ID('experimental');
$feature_post = get_posts( 'cat='.$thecat1.'&numberposts=3' );
Of course i changed this for every of my three columns. Somehow all three columns show no the same title, and the same posts which got actualy posted into those three different categories.
Even though i have no those three different columns, all three columns on my site look exactly the same.
I even changed $the_cat to $the_cat1 to $the_cat3 so that i can be absolutely sure that every category uses a different cat-id.
?? Sorry for those annoying questions but i’m not much of a programmer.