Hallo zusammen,
seit gut einer woche bin ich von serendipity auf wordpress umgestiegen und bisjetzt gefällt mir wordpress super.
Hab das Design SimpleBalance auf meinem Blog und bin total zufrieden damit.
Im CP vom Theme gibt es hier eine Einstellung namens Featured post. Dort kann man einen Blogeintrag wählen, der dann auf dem Blog ganz oben als "Besonderer" Eintrag angezeigt wird. Das problem ist hier, dass ich nur einen eintrag von den letzten 20 einträge machen kann.
Zurzeit habe ich einen Blogeintrag als Featured post eingestellt, der für mich sehr wichtig ist. Nur, wenn ich 3 weitere blog einträge schreibe, kann ich diesen nicht mehr als Featured post eingestellt haben.
Deswegen meine frage, kann ich das ganze irgendwie umstellen - die blogeinträge erweitern (für die einstellung)?
featuredpost.php:
<?php
if ( $recentposts = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE ID = ".$theme_options["featured_id"]." AND post_status = 'publish'")):
?>
<?php
foreach ($recentposts as $post) {
setup_postdata($post); ?>
<div class="featHead">Besonderer Eintrag</div>
<div class="postFeatured">
<div class="postTitle"><h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2></div>
<div class="postInfo">Geschrieben am <?php the_time('F dS, Y'); ?> in <?php the_category(', ') ?> <?php edit_post_link('edit', '(', ')'); ?></div>
<div class="postContent sizeFeatured">
<?php
the_content('<br />Lese den ganzen Blogartikel: '.get_the_title('', '', false));
?>
</div>
<div class="postMetaFeatured">
<span class="postLink"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">Lese den ganzen Artikel...</a></span>
<?php
$comNo = get_comment_type_count('comment'); // Checking if there are any actual comments (trackbacks and pingbacks excluded)
if ($comNo == 1 ) {
?>
<span class="postComments"><?php comments_popup_link('Schreibe einen Kommentar', '1 Kommentar', 'Lese '.$comNo.' Kommentare'); ?></span>
<?php }
elseif ($comNo > 1) {
?>
<span class="postComments"><?php comments_popup_link('Schreibe einen Kommentar', '1 Kommentar', 'Lese '.$comNo.' Kommentare'); ?></span>
<?php }
elseif ($comNo == 0) {
?>
<span class="postComments"><?php comments_popup_link('Schreibe einen Kommentar', 'Schreibe einen Kommentar', 'Schreibe einen Kommentar'); ?></span>
<?php } ?>
</div>
</div>
<?php
}
endif;
?>
Alles anzeigen
Blogeintrag den ich gerne für die nächsten wochen / monate als Featured post eingestellt haben möchte:
Blogparade: PortableApps | MiFuPa.de
Ich hab mir die featuredpost.php datei schonmal angeschaut und wollte sie auch ändern, jedoch kams nur zu fehlern.
Kann man da was machen?
Ich hoffe ich hab mich verständlich ausgedrückt :)
Danke
Michael "MiFuPa" Fuchs