Nein, meine ganze single.php würde mit dem Code folgendermaßen aussehen:
(Die Stelle kommt bei[FONT=monospace] [/FONT][COLOR=#000000]Weiterblättern im Blog:[/COLOR])
PHP
<?php get_header(); ?>
<div id="container">
<div id="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="postdate">
<div class="date"><?php comments_popup_link('0', '1', '%'); ?></div>
</div><!-- end postdate -->
<div class="title">
<h2><?php the_title(); ?></h2>
<div class="postmeta">
<span class="postmeta_greennode"><?php the_tags('', ', ', '<br />'); ?></span>
</div><!-- end postmeta -->
</div><!-- end title -->
<div class="entry">
<!-- google_ad_section_start -->
<?php the_content('<p>»</p>'); ?>
<!-- google_ad_section_end -->
<div style="clear:both;"></div>
</div><!-- end entry -->
<span class="share">Share via <a href="http://www.facebook.com/sharer.php?u=<?php echo get_bloginfo('url')."/?p=".$post->ID; ?>&t=<?php the_title(); ?>" title="Facebook.com" target="blank"><img src="<?php bloginfo('template_directory'); ?>/images/facebook.png" border="0" /></a>
<a href="http://twitter.com/home?status=Lese gerade <?php echo get_bloginfo('url')."/?p=".$post->ID; ?>" title="Twitter.com" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/twitter.png" border="0" /></a>
<a href="http://digg.com/submit?phase=2&url=<?php echo get_bloginfo('url')."/?p=".$post->ID; ?>" title="Digg.com" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/digg.png" border="0" /></a>
<a href="http://del.icio.us/post?url=<?php echo get_bloginfo('url')."/?p=".$post->ID; ?>" title="Del.icio.us" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/delicious.png" border="0" /></a>
<a href="http://www.stumbleupon.com/submit?url=<?php echo get_bloginfo('url')."/?p=".$post->ID; ?>" title="Stumbleupon.com" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/stumble.png" border="0" /></a>
<a href="http://www.mixx.com/submit?page_url=<?php echo get_bloginfo('url')."/?p=".$post->ID; ?>" title="Mixx.com" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/mixx.png" border="0" /></a>
<a href="http://reddit.com/submit?url=<?php echo get_bloginfo('url')."/?p=".$post->ID; ?>" title="Reddit.com" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/reddit.png" border="0" /></a>
<a href="http://technorati.com/faves/?add=<?php echo get_bloginfo('url')."/?p=".$post->ID; ?>" title="Technorati.com" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/technorati.png" border="0" /></a>
<a href="mailto:mail-des@freundes.de?subject=<?php the_title();?>&body=<?php echo get_bloginfo('url')."/?p=".$post->ID; ?>" title="eMail (Den Artikel "<?php the_title();?>" einen Freund via der klassischen eMail empfehlen)" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/email.png" border="0" /></a>
</span>
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
<div id="postinfo">
<h4 class="metainfo">Informationen zum Artikel:</h4>
<ul>
<li>Geschrieben von <?php the_author_posts_link(); ?>
am <?php the_time('d') ?>. <?php the_time('F Y') ?></li>
<li>Kategorie: <?php the_category(', ') ?></li>
</ul>
<h4 class="metabrowse">Weiterblättern im Blog:</h4>
<ul>
<li>Vorheriger Beitrag: <?php previous_post_link('%link') ?></li>
<li>Nächster Beitrag: <?php next_post_link('%link') ?></li>
<?php
$args = array( 'numberposts' => 1, 'orderby' => 'rand' );
$rand_posts = get_posts( $args );
foreach( $rand_posts as $post ) : ?>
<li>Zufälliger Beitrag: <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>
<h4 class="metacomments">Trackbacks:</h4>
<ul>
<li><a href="<?php trackback_url(true); ?>" rel="trackback" title="Trackback URI">Trackback-URL</a></li>
</ul>
</div> <!-- [postinfo] -->
<div class="info">
<p>Direktlink zum Verteilen: <form name="sharelink"><textarea rows=1 cols=42><?php echo get_bloginfo('url')."/?p=".$post->ID; ?></textarea><!---<input type=button value="Markieren & Kopieren" onClick="this.form.sharelink.select();<br>this.form.sharelink.focus(); document.execCommand('Copy')">---></form></p>
<p><iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo get_bloginfo('url')."/?p=".$post->ID; ?>&layout=standard&show_faces=true&width=350&action=like&font=segoe+ui&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:80px;" allowTransparency="true"></iframe></p>
</div><!-- end info -->
<?php if (function_exists('st_related_posts')) { ?>
<div class="relate">
<?php st_related_posts('number=8&title=<h3>Related Post</h3>&include_page=false&order=date-desc&nopoststext=no related post&xformat=<a href="%permalink%" title="%title% ( %date% )">%title%</a>'); ?>
</div><!-- end relate -->
<?php } ?>
</div><!-- end post -->
<?php comments_template(); ?>
<?php endwhile; ?>
<?php else : ?>
<div class="post">
<div class="title">
<h2>Sorry, nothing found!</h2>
</div><!-- end title -->
<p>Sorry, nothing found! Please use the SEARCH on the sidebar, or visit our ARCHIVES page.</p>
</div><!-- end post -->
<?php endif; ?>
</div><!-- end main -->
<?php get_sidebar(); ?>
</div><!-- end container -->
<?php get_footer(); ?>
Alles anzeigen