Hi there,
I was reading the topics about query_posts and navigation issues. But i can't seem to figure out how it works in my case.
I'm working on this blog / magazine theme which has:
a) A BLOG (showing on the homepage, posts in the category "blog" limited by 5);
<?php
query_posts("cat=4&showposts=5");
while (have_posts()) : the_post(); ?>
<!-- begin blogitem -->
<div class="blogItem360">
<div class="blogDate"><p><?php the_time('j F'); ?> <?php the_author_posts_link();?> <?php edit_post_link('Edit', '| ', ''); ?><p></div>
<div class="blogTitle"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title_attribute(); ?>"><?php the_ttftitle('','',true,"Avt","font_size=24&maxwidth=320");?></a></div>
<div class="blogTxt"><?php the_content('( Lees Meer )'); ?></div>
<div class="blogComment">
<p><?php comments_number('Geen reacties','1 reactie','% reacties'); ?> (<a href="<?php comments_link(); ?>">Reageer</a>)</p>
</div>
<div class="r">
<p><a href="http://www.addthis.com/bookmark.php?pub=rwieckardt&url=<?php echo get_permalink() ?>&title=<?php echo the_title_attribute() ?>" title="Bookmark and Share" target="_blank">
<img src="<?php bloginfo('template_directory');?>/images/btn_addthis.gif" width="16" height="16" alt="Bookmark and Share"/>
</a></p>
</div>
<!-- end blogitem -->
</div>
<?php endwhile;?>
-- navigation needs to be added...
b) AN ARTICLE OVERVIEW (showing on the homepage, posts in the category "articles" limited by 6)
<?php query_posts("cat=5&showposts=6&paged=".$_GET["page"]); ?>
<?php $i = 0; ?>
<?php while (have_posts()) : the_post(); ?>
<?php
if($i==0){
?>
<!-- begin article row -->
<div class="row">
<?php
}
?>
<!-- begin article item -->
<div class="item">
<p class="articleThumb"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php $values = get_post_custom_values('Image'); echo $values[0]; ?>" alt="<?php the_title(); ?>" /></a></p>
<p class="articleTitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></p>
<p class="articleAuthor">door <?php the_author_posts_link();?></p>
<!-- end article item -->
</div>
<?php
if($i==1){
?>
<!-- end article row -->
</div>
<?php
$i=0;
}else{
$i++;
}
?>
<?php endwhile;
if($i>0){
?>
<!-- end article row -->
</div>
<?php
}
?>
</div>
<!-- begin article index navigation -->
<div class="bg3dwide"><img src="<?php bloginfo('template_directory');?>/images/bg_3d480.jpg" width="518" height="21"/></div>
<div id="articleNavigation">
<p class="vorige"><?php posts_nav_link('</p><p class="volgende">','< Vorige Artikelen','Volgende Artikelen >'); ?></p>
</div>
<!-- end article index navigation -->
-- Navigation using posts_nav_link will influence all sections
c) A SHOP (showing on the home page, posts in the category "shop" limited by 3)
same as articles
Now i want to be able to browse trough these sections seperately. When i use the posts_nav_link all the sections go to page 2 instead of the section which the nav links should belong to.
How do i solve this?
Again: I need indepenent navigation links for each section.
I use query_posts to retrieve these loops.
I hope you can help me out. cause i've been looking for a solution for ages. The construction page is here: herozero
thanks in advance