ich bin jetzt fast soweit das ich sagen kann, so soll es sein!
ich habe es jetzt geschaft das 3 kategorien angezeigt werden.
hardrev.de » Ich teste, du testest, er sie es testet
nachteil: "news" und "hardrev.de" sind immernoch zu groß.
die kategorien konnte ich in der "home.php" dazufügen. das sah bei mir so aus:
PHP-Code:
<ul class="latestoneandhalf">
<?php $feature_post = get_posts( 'category=1&numberposts=1' ); ?>
<?php foreach( $feature_post as $post ) : setup_postdata( $post ); ?>
<li><h2 class="latest"><?php the_category(' '); ?></h2></li>
<?php endforeach; ?>
<?php $feature_post = get_posts( 'category=1&numberposts=4' ); ?>
<?php foreach( $feature_post as $post ) : setup_postdata( $post ); ?>
<?php if (function_exists('c2c_get_custom')) : ?>
<li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php echo c2c_get_custom('post-image','<img src="','" alt="<?php the_title(); ?>" class="post-image"/>',''); ?></a></li>
<?php endif; ?>
<li class="list-time"><?php the_time('d'); ?>.<?php the_time('M'); ?></li>
<li class="list-title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>
<li class="latest-excerptoneandhalf"><?php the_excerpt(); ?></li>
<?php endforeach; ?>
</ul>
<ul class="latestoneandhalf">
<?php $feature_post = get_posts( 'category=5&numberposts=1' ); ?>
<?php foreach( $feature_post as $post ) : setup_postdata( $post ); ?>
<li><h2 class="latest"><?php the_category(' '); ?></h2></li>
<?php endforeach; ?>
<?php $feature_post = get_posts( 'category=5&numberposts=4' ); ?>
<?php foreach( $feature_post as $post ) : setup_postdata( $post ); ?>
<?php if (function_exists('c2c_get_custom')) : ?>
<li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php echo c2c_get_custom('post-image','<img src="','" alt="<?php the_title(); ?>" class="post-image"/>',''); ?></a></li>
<?php endif; ?>
<li class="list-time"><?php the_time('d'); ?>.<?php the_time('M'); ?></li>
<li class="list-title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>
<li class="latest-excerptoneandhalf"><?php the_excerpt(); ?></li>
<?php endforeach; ?>
</ul>
<ul class="latestoneandhalf">
<?php $feature_post = get_posts( 'category=4&numberposts=1' ); ?>
<?php foreach( $feature_post as $post ) : setup_postdata( $post ); ?>
<li><h2 class="latest"><?php the_category(' '); ?></h2></li>
<?php endforeach; ?>
<?php $feature_post = get_posts( 'category=4&numberposts=4' ); ?>
<?php foreach( $feature_post as $post ) : setup_postdata( $post ); ?>
<?php if (function_exists('c2c_get_custom')) : ?>
<li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php echo c2c_get_custom('post-image','<img src="','" alt="<?php the_title(); ?>" class="post-image" />',''); ?></a></li>
<?php endif; ?>
<li class="list-time"><?php the_time('d'); ?>.<?php the_time('M'); ?></li>
<li class="list-title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>
<li class="latest-excerptoneandhalf"><?php the_excerpt(); ?></li>
<?php endforeach; ?>
</ul>
warum die kategorien so komische nummern haben ist mir ein rätsel, da es auch nur wirklich 3 sind.
wie bekomme ich es jetzt hin das die 2 kategorien "news" und "hardrev.de" kleiner werden?
Edit: Kann Closed werden habs jetzt selbst hinbekommen, danke trotzdem!