Hallo zusammen,
ich habe das PRoblem, dass ich eine individuelle Startseite gebaut habe unter: http://save-mount-kenya-forest.org - Es wird der Seiteninhalt und die zwei neuesten Posts angzeigt. Die beiden Posts werden nun trotz more-tag im Post angezeigt. Hier der Code dazu:
PHP
<section id="main-content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<!-- Begin Article -->
<article class="page">
<header class="pageHeader">
<h2><?php the_title(); ?></h2>
</header>
<section class="pageText">
<?php the_content(); ?>
</section>
<div class="sidebadge"></div>
</article>
<!-- End Article -->
<?php endwhile; ?>
<?php else : ?>
<p>Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
<?php $my_query = new WP_Query('posts_per_page=2'); ?>
<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
<!-- Begin Article -->
<article class="post">
<header class="postHeader">
<div class="date"><?php the_time('M j, Y') ?> - <span><img src="<?php bloginfo('template_directory'); ?>/images/ico_file.png" alt=""> <?php the_category(', ') ?> <img src="<?php bloginfo('template_directory'); ?>/images/ico_comment.png" alt=""> <?php comments_popup_link('No Comments', '1 Comment ', '% Comments'); ?></span> </div>
<h2><a href="<?php the_permalink() ?>" ><?php the_title(); ?></a></h2>
</header>
<section class="postText">
<?php the_content('Read more »'); ?>
</section>
<div class="sidebadge"></div>
</article>
<!-- End Article -->
<?php endwhile; wp_reset_query(); ?>
Alles anzeigen
Ich bin nicht so der PHP Profi, kann mir irgendeiner sagen was ich ändern muss?
viele grüße
istria