Hallo zusammen,
ich habe mit der tollen Unterstützung aus diesem Forum hier eine Seite mit mehreren Seiten und jeweils unterschiedlichen Sidebars bauen können (Danke!!!). Das funktioniert soweit super.
Nun habe ich allerdings das Problem, dass bei der EINZELANSICHT von Artikeln Fehler auflaufen. Zum einen gibt es im Textfeld nur eine 404-Meldung und die zugeteilte Sidebar enthält wieder Categories, Links, Archives. Das sollte eigentlich so nicht sein.
Bisher bin ich immer davon ausgegangen, dass die Einzelseite in der singe.php eingestellt wird, aber ich kann nichts finden, was auf einen offensichtlichen Fehler hinweist.
Ich würde mich sehr freuen, wenn jemand von Euch dort mal einen Blick drauf werfen könnte:
single.php
<?php get_header(); ?>
<?php include(TEMPLATEPATH."/sidebar-film.php");?>
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
<?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>
<p class="postmetadata"><small><?php the_time('F jS, Y') ?> | <!-- by <?php the_author() ?> --><?php if (function_exists('the_tags')) { the_tags('Tags: ', ', ', '<br/>'); } ?><?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></small></p>
</div>
</div>
<div class="comentary">
<?php comments_template(); ?>
</div>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
</div>
<?php get_footer(); ?>
Alles anzeigen
sidebar-film.php
<div id="sidebar-film">
<ul>
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar(1) ) : ?>
<li>
<img src="http://www.die-unwertigen.de/wp-content/uploads/2009/09/Platzhalter300_375.jpg" alt="Platzhalter" />
</li>
<?php endif; ?>
</ul>
</div>
Alles anzeigen
Die Sidebar selbst funktioniert an anderer Stelle.
Vielen Dank schon einmal und Gruß
Daniel