hallo leute, habe ein problem mit der anpassung meines themes von upstart blogger/ miniml.
wenn ich den den codeschnipsel
<?php get_sidebar(); ?>
in meiner page php seite nicht wie üblich wie hier platziere
<?php get_sidebar(); ?>
<?php get_footer(); ?>
wird in der hauptspalte nicht der inhalt einer festen seite angezeigt sondern nur der inhalt eines bloginhalts.
ich habe halt erstmal begonnen, die index.php nach meinen wünschen anzupassen und da lief alles. dann versucht dasganze auch die single.php und page.php zu übertragen und läuft nicht...
hat jemand ne ahnung, woran das liegen kann?
hier mal die codes
page.php
HTML
<?php get_header(); ?>
<link href="style.css" rel="stylesheet" type="text/css">
<div id="container">
<?php get_sidebar(); ?>
<div id="entries">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h3 class="kategorie"><?php the_category(', ') ?></h3>
<h1 style="display:inline;"><a href="<?php the_permalink(); ?>" style="color:#000000;background:#DCDCDC;"><?php the_title(); ?></a></h1><div style="margin-top:-2px;"><small><?php the_time('m.d.y'); ?> <b>|</b> <a href="<?php the_permalink(); ?>">Permalink</a> <b>|</b> <?php comments_popup_link('Comment?', '1 Comment', '% Comments' ) ?> </small></div>
<div class="post">
<?php the_content(); ?>
<?php if (function_exists('the_tags') ) : ?>
<?php the_tags(); ?>
<?php endif; ?>
</div><!--end posts-->
<?php endwhile; ?>
<?php else : ?>
<!-- no posts -->
<h2>Sorry, no posts were found</h2>
<?php endif; ?>
<?php next_posts_link('« Previous Entries') ?><br/>
<?php previous_posts_link('» Next Entries') ?>
<br/><br/>
</div><!--end entries-->
<div id="rechts">
<div id="logo">
<h1><a href="<?php echo get_option('home'); ?>/" style="font-size:40px; line-height:0.8em;">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/logo.png" alt="Feed" />
</a></h1>
</div>
<div id="rechtstext">
<h3>Hallo!!</h3>
<?php bloginfo('name'); ?> was designed by <a href="http://www.upstartblogger.com/">Upstart Blogger</a>. Here's where you put a little blurb to let visitors know what your site is about. Just edit <b>sidebar.php</b>.
<h3>Menu</h3>
<ul>
<?php wp_list_pages('title_li=' ); ?>
</ul>
<h3>Kategorien</h3>
<ul>
<?php wp_list_categories('show_count=1&title_li='); ?>
</ul>
<h3>Suche</h3><br/>
<?php include(TEMPLATEPATH . '/searchform.php'); ?>
<?php if (function_exists('akpc_most_popular')) { ?>
<h3>popular</h3>
<ul>
<?php akpc_most_popular($limit = 5); ?>
</ul>
<?php } ?>
<h3>feeds</h3>
<ul>
<li><a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a></li>
<li><a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a></li>
</ul>
<p><a href="<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/feed-icon-28x28.png" alt="Feed" /></a></p>
<!-- edit this to add your own advertising content -->
</div>
<p><a href="http://www.facebook.de"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/facebook.gif" alt="Feed" /></a></p>
<p><a href="http://www.myspace.com"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/myspace.gif" alt="Feed" /></a></p>
<p><a href="http://www.xing.de"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/xing.gif" alt="Feed" /></a></p>
</div>
</div><!-- end container -->
<?php get_footer(); ?>
Alles anzeigen
sidebar.php
HTML
<div id="sidebar">
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar(1) ) : ?>
<h3>letzte Beiträge</h3>
<ul>
<?php query_posts('showposts=5'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<li><strong><a href="<?php the_permalink() ?>" style="color:#ffffff;"><?php the_title() ?> </a></strong></li>
<?php endwhile; endif; ?>
</ul>
<?php if (function_exists('get_recent_comments')) { ?>
<h3>letzte Kommentare</h3>
<ul class="dates"><?php get_recent_comments(); ?></ul>
<?php } ?>
<?php endif; ?>
<?php if (function_exists('wp_tag_cloud') ) : ?>
<h3>Tag Cloud</h3>
<?php wp_tag_cloud('smallest=8&largest=36&'); ?>
<?php endif; ?>
<div id="sidebarright">
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar(3) ) : ?>
<h3>Links</h3>
<ul>
<?php wp_list_bookmarks('categorize=0&title_li='); ?>
</ul>
<h3>Meta</h3>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="http://jigsaw.w3.org/css-validator/validator?uri=<?php echo get_settings('home'); ?>" title="Validate documents CSS">Validate CSS</a></li>
<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
<li><a href="http://www.upstartblogger.com/">Upstart Blogger</a></li>
<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
<?php wp_meta(); ?>
</ul>
<?php endif; ?>
</div><!--sidebarright-->
<div id="sidebarleft">
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar(2) ) : ?>
<h3>Archives</h3>
<ul>
<?php wp_get_archives('type=monthly&show_post_count=1'); ?>
</ul>
<?php endif; ?>
<h3>Copyright</h3>
Copyright © 2009 by <?php bloginfo('name'); ?>. All rights reserved.
<!-- This theme is free and you can alter it as you see fit, but please keep the link to Upstart Blogger. Thanks! --><p>Basiert auf <a href="http://www.upstartblogger.com/">Upstart Blogger</a>.</p>
</div><!--end sidebarleft-->
</div><!--end sidebar-->
Alles anzeigen
die alte version der page.php
HTML
<?php get_header(); ?>
<div id="container">
<div id="entries">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h3><?php bloginfo('name'); ?></h3>
<h1 style="display:inline; font-size:3.3em;"><a href="<?php the_permalink(); ?>" style="color:#444444;"><?php the_title(); ?></a></h1>
<div class="post">
<?php the_content(); ?>
</div><!--end posts-->
<?php endwhile; ?>
<?php else : ?>
<!-- no posts -->
<h2>Sorry, no posts were found</h2>
<?php endif; ?>
</div><!--end entries-->
<?php get_sidebar(); ?>
</div><!-- end container -->
<?php get_footer(); ?>
Alles anzeigen
danke für jede hilfe, bin echt ratlos (und noch ein rookie)
danke!!