Hallo,
ich habe das WP Theme "Bradford Magazine" angepasst, leider scheitere ich bei einer (eigentlich dachte ich) simplen Sache: ich will auf einer statischen Seite in einer Box eine Liste mit Posts zu einem bestimmten Tag ausgeben. Es funktioniert auch, nur dass ich irgendein Loop-Problem habe, denn statt dem Text der statischen Seite wird endlos der Text des ersten Posts ausgegeben.
Irgendwo ist wohl ein "endwhile, endif" zuwenig/zuviel?? Hilfäää!
Hier ist es, der Part der Probleme macht ist [COLOR=Magenta]rosa.[/COLOR]
PHP
<?php
/*
Template Name: Featured Page
*/
?>
<?php get_header(); ?>
<div id="featured-top">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="featured-leftcol"> <img class="left" src="<?php bloginfo('url'); ?>/wp-content/uploads/<?php $values = get_post_custom_values("featuredpagepic"); echo $values[0]; ?>" alt="" id="featuredpagepic" />
<h2>
<?php $values = get_post_custom_values("featuredpageheadline"); echo $values[0]; ?>
</h2>
<span id="featured-text">
<?php $values = get_post_custom_values("featuredpagetext"); echo $values[0]; ?>
</span> </div>
[COLOR=Magenta]<div id="featured-rightcol">
<h3><?php _e('Recent Posts','branfordmagazine');?></h3>
<li id="featured-recent">
<ul class="bullets">
<?php query_posts('tag=helfer'); ?>
<?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
</li>
</div>[/COLOR]
</div>
<div id="featured-content">
<div class="featured_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 page', 'branfordmagazine') ." »</p>"); ?>
<?php wp_link_pages("<p><strong>" . __('Pages', 'branfordmagazine') . ":</strong>", '</p>', __('number','branfordmagazine')); ?>
</div>
</div>
<?php endwhile; endif; ?>
<?php edit_post_link('Edit', '<p>', '</p>'); ?>
</div>
<div id="featured-sidebar">
<?php /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Featured Page Textwidgets') ) : ?>
<?php endif; ?>
</div>
<?php get_footer(); ?>
Alles anzeigen
Wäre wirklich dankbar, wenn jemand den Fehler sieht...
Julia:roll: