volgende pagina vertoond geen nieuwe berichten
-
Hallo allemaal,
Ik ben bezig een layout te maken waarbij de posts op de home pagina in 4 kolommen verschijnen. Dat is allemaal gelukt alleen nu is er 1 probleem. Zodra ik de php voor de ‘oudere’ en ‘nieuwe’ berichten toevoeg en deze klik komen dezelfde posts als op de eerste pagina tevoorschijn en dus geen oude berichten.
Hier te bekijken: http://www.brittvannoord.nl/anaomi/
De code die in mijn index.php staat is:
<?php get_header(); ?><div id="content">
<div id="knopje">dfdf</div><div id="knopje2">dfdf</div><div id="column_01">
<?php query_posts('showposts=4'); ?>
<?php $posts = get_posts('numberposts=4&offset=0'); foreach ($posts as $post) : start_wp(); ?>
<?php static $count1 = 0; if ($count1 == "5") { break; } else { ?><h2>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></h2>
<div class="entry">
" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail(array(150,150), array ('class' => 'alignleft')); ?>
<?php the_excerpt(); ?><?php $count1++; } ?>
<?php endforeach; ?>
</div><div id="column_wrap">
<div id="column_02">
<?php query_posts('showposts=4'); ?>
<?php $posts = get_posts('numberposts=4&offset=4'); foreach ($posts as $post) : start_wp(); ?>
<?php static $count2 = 0; if ($count2 == "5") { break; } else { ?><h2>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></h2>
<div class="entry">
" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail(array(150,150), array ('class' => 'alignleft')); ?>
<?php the_excerpt(); ?><?php $count2++; } ?>
<?php endforeach; ?>
<div class="navigation">
<span class="previous-entries"><?php next_posts_link('Older Entries') ?></span>
<span class="next-entries"><?php previous_posts_link('Newer Entries') ?></span>
</div>
</div>
<div id="column_03">
<?php query_posts('showposts=4'); ?>
<?php $posts = get_posts('numberposts=4&offset=8'); foreach ($posts as $post) : start_wp(); ?>
<?php static $count3 = 0; if ($count3 == "5") { break; } else { ?><h2>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></h2>
<div class="entry">
" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail(array(150,150), array ('class' => 'alignleft')); ?>
<?php the_excerpt(); ?><?php $count3++; } ?>
<?php endforeach; ?>
</div><div id="column_04">
<?php query_posts('showposts=4'); ?>
<?php $posts = get_posts('numberposts=4&offset=12'); foreach ($posts as $post) : start_wp(); ?>
<?php static $count3 = 0; if ($count4 == "5") { break; } else { ?><h2>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></h2>
<div class="entry">
" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail(array(150,150), array ('class' => 'alignleft')); ?>
<?php the_excerpt(); ?><?php $count3++; } ?>
<?php endforeach; ?>
</div></div>
</div>
<!--/content --><?php get_footer(); ?>
Zelf heb ik helaas niet genoeg verstand van php om daadwerkelijk te zien waar het probleem nu zit..
Ik hoop dat iemand mij kan helpen.
Alvast bedankt!
De blog waarbij ik hulp nodig heb is (alleen zichtbaar voor ingelogde gebruikers).
-
Je blog aangeroepen via http://www.brittvannoord.nl blijkt niet te worden gehost op WordPress.com
This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.
If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.
If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.
This is an automated message.
-
Je website is niet gehost op WordPress.com, maar een WordPress.org Installatie op Bluehost. Wij kunnen alleen ondersteuning geven voor sites gehost op WordPress.com.
Hier kan je meer lezen over de verschillen tussen WordPress.com en WordPress.org.
WordPress.org ondersteuning kan je vinden op deze sites:
- Het onderwerp ‘volgende pagina vertoond geen nieuwe berichten’ is gesloten voor nieuwe reacties.