Hallo,
ich möchte, wenn ich einzelne Post direkt anschauen möchte, die Sidebar angezeigt bekommen. Habe gehört, das stellt man in der single.php ein.
Nur bei mir kommt immer murks raus :???:
PHP
<?php get_header(); ?>
<div id="content" class="widecolumn">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="navigation">
<div class="alignleft"><?php previous_post_link('« %link') ?></div>
<div class="alignright"><?php next_post_link('%link »') ?></div>
</div>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="postinfo">
<div class="calborder">
<div class="cal">
<span class="cald<?php echo (get_option('mandigo_dates') ? ' cald2' : '') ?>"><?php the_time((get_option('mandigo_dates') ? 'M' : 'd')) ?></span>
<span class="calm"><?php the_time((get_option('mandigo_dates') ? 'd' : 'm')) ?></span>
<span class="caly"><?php the_time('Y') ?></span>
</div>
</div>
<h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small>Geschrieben von: <?php the_author() ?>, in <?php the_category(', ') ?></small>
</div>
<div class="entry">
<?php the_content('<p class="serif">mehr... »</p>'); ?>
<?php link_pages('<p><strong>Seiten:</strong> ', '</p>', 'number'); ?>
<p class="postmetadata alt">
<small>
Geschrieben
<?php /* This is commented, because it requires a little adjusting sometimes.
You'll need to download this plugin, and follow the instructions:
http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
/* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
am <?php the_time('l, F jS, Y') ?> um <?php the_time() ?>
und ist zu finden in <?php the_category(', ') ?>.
Du kannst die Antworten zu diesem Thema verfolgen unter: <?php comments_rss_link('RSS 2.0'); ?> feed.
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open ?>
Du kannst <a href="#respond">Antwort</a>, or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a> von deiner Seite.
<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open ?>
Antworten ist zur Zeit nicht möglich aber du kannst <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a> von deiner Seite.
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not ?>
Du kannst am Ende eine Antwort hinterlassen. Pingen ist zurzeit nicht erlaubt.
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
Kommentare und Pings sind zur Zeit nicht erlaubt.
<?php } edit_post_link('Editiere dieses Eintrag.','',''); ?>
</small>
</p>
</div>
</div>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p>Leider entspricht kein Beitrag deinen Kriterien.</p>
<?php endif; ?>
</div>
<?php get_footer(); ?>
Alles anzeigen
Wo muss ich denn
einfügen?