Hi Monika,
danke für den Tipp - das wäre genau das gewesen, was ich gebraucht hätte ![]()
Allerdings habe ich das jetzt mit was selbstgebautem gelöst:
PHP
<?php if(is_child(10)) { ?>
<!-- Bundesliga-News anteasern -->
<?php
$bl_cat_id = 2;
$num_teaser = 3;
$blposts= $wpdb->get_results("SELECT * FROM $wpdb->posts posts, $wpdb->post2cat post2cat
WHERE post2cat.category_id = $bl_cat_id AND post2cat.post_id = posts.ID AND post_status = 'publish' AND post_date < NOW()
ORDER BY post_date DESC LIMIT 0,$num_teaser", OBJECT);
?>
<?php if ($blposts): ?>
<div id="shortnews">
<h2>Aus unseren Bundesliga-News</h2>
<?php foreach ($blposts as $post): ?>
<?php setup_postdata($post); ?>
<p><span class="meta"><?php the_time('d.n./H:i') ?> Uhr</span>
<span class="title">
<a href="<?php the_permalink()?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<?php the_title(); ?></a>
</span></p>
<?php endforeach; ?>
<p><a href="/index.php/category/news/bundesliga/">» alle Bundesliga-News ansehen</a></p>
</div>
<?php endif; ?>
<?php } //is_child ?>
Alles anzeigen
Trotzdem vielen Dank für Deinen Tipp!!
Das nächste mal dann ... ![]()
Grüße,
Daniel