hast du im Template ganz oben auch den Template-Namen angegeben und dann ins richtige Verzeichnis hochgeladen?
Das Template habe ich "ipodiphone.php" genannt.
Die .php sieht folgendermaßen aus:
PHP
<?php
/*
Template Name: iPodiPhone
*/
?>
<?php get_header(); ?>
<div class="wrap background">
<div id="content" class="left-col wrap">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<!--- Post Starts -->
<div class="post wrap">
<div class="post-meta left-col">
<h3 class="wrap"><span class="month"><?php the_time('M'); ?><span class="year"><?php the_time('o'); ?></span></span><span class="day"><?php the_time('d'); ?></span></h3>
<div class="version"><strong>aktuelle Version: <span class="latest"><?php $key="latest_version"; echo get_post_meta($post->ID, $key, true); ?></strong></span></div>
<div class="cat"><?php the_category() ?></div>
<p><h4 class="comments"><a href="<?php comments_link(); ?>"><?php comments_number('0','1','%'); ?></a></h4>
</div>
<div class="post-content right-col">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2><?php if(function_exists('the_ratings')) { the_ratings(); } ?>
<?php if ( !get_option('woo_the_content') ) { the_content('<span class="read_more">weiterlesen</span>'); } else { the_excerpt(); } ?>
</div>
</div>
<!--- Post Ends -->
<?php endwhile; ?>
<div class="more_posts">
<h2><?php next_posts_link('« ältere Einträge') ?> <?php previous_posts_link ('neuere Einträge »') ?></h2>
</div>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>
Alles anzeigen