previous_posts_link … random glitch??
-
Okay, I’ve been trying to fix this for hours … have read several other forum posts, have made several adjustments, and am officially stumped. :-/ I’m really hoping someone here can help! ??
On my photography blog, I have the home page set to pull posts from one specific category. Which works (thankfully!) … the problem is that when you click ‘previous posts’, /page/2/ jumps back to and pulls (not all) but a few posts from another category. Why is this and how do I fix it??
Here’s the code ….
<?php
global $options;
foreach ($options as $value) {
if (get_settings( $value[‘id’] ) === FALSE) { $$value[‘id’] = $value[‘std’]; } else { $$value[‘id’] = get_settings( $value[‘id’] ); } }
?>
<?phpif($fd_top==”Tabbed Panels”) {include (TEMPLATEPATH . ‘/content_3.php’);} ?>
<!—— KATIE’s BLOG———->
<?php
query_posts(‘posts_per_page=10&category_name=fidamo-in-action’);?><div class=”leftsection”>
<font color=”#09d29b”><B>FIDAMO in Action >></B></FONT><?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<h2>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h2>
<div class=”date”>Posted on <?php the_time(‘M d Y’); ?></div>
<div class=”balloon3″><?php comments_popup_link(‘0’, ‘1’, ‘%’); ?></div><div class=”content”>
<?php if ($fd_layout == “Excerpt”) { ?>
<div class=”thumbpost”>” rel=”bookmark” title=”<?php the_title(); ?>”><?php get_thumb(); ?></div>
<?php limits2(400); ?>
<?php } elseif ($fd_layout == “Full Post”) { ?>
<?php the_content(“Read More”); ?>
<?php } ?>
</div><!–content –><div class=”clear”><!– –></div>
<div class=”meta”>
<div class=”tag_icon”><?php the_tags(”, ‘ ‘, ‘
‘); ?></div>
<div class=”cat_icon”><?php the_category(‘ ‘) ?></div>
</div><!–meta–>
<div class=”clear”></div>
</div><!–post–><?php endwhile; ?>
<div class=”left_right”>
<div class=”alignleft”><?php next_posts_link(‘« Older Entries’) ?></div>
<div class=”alignright”><?php previous_posts_link(‘Newer Entries »’) ?></div>
</div>
<?php endif; ?>
</div><!–leftsection–><?php get_sidebar(); ?>
<div class=”clear”><!– –></div>`From the code above I have specified
<?php query_posts('posts_per_page=10&category_name=fidamo-in-action');?>
This works perfectly until you get to page 2 and then a glitch occurs with the posts that are pulled (a few posts from another category are pulled) and then the “FIDAMO in Action >>” above the posts also disappears. (???)
You can see it in action here ….
https://fidamo.com/blogAny help you can offer would be greatly appreciated!!!
xKT
- The topic ‘previous_posts_link … random glitch??’ is closed to new replies.