Next/prev post links not working
-
Okay, I’ve totally attacked my wordpress, bastardized it to all get out trying to make my site. I’ve kind of taken a page from webcomic layouts. Up until now I’ve manually linked programs from next to previous, but it’s a pain in the next and SHOULD work without my doing this. So why doesn’t it? It’s like the next_post/prev_post tags are totally ignored! Aargh!
The site is https://cymonsgames.retroremakes.com/ Here’s the code for my home.php. Warning, badly hacked code follows:
<?php get_header();?> <p id="intro">Welcome to Cymon's Games updated weekly with a new program for you to type in and play! You will need a C/C++ complier to type these programs in. Visit the <a href="/getting-started">Getting Started</a> section to find out how to set up your computer.</p> <?php // Show the latest programs $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('category_name=Programs&paged=$paged'); ?> <?php if ( have_posts() ) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h3 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3> <div class="storycontent"> <?php the_content(__('(more...)')); ?> <small><p align=right><?php the_time('F jS, Y') ?></p></small> </div> <?php previous_post_link('« « %', '', 'yes'); ?> <?php next_post_link('% » » ', '', 'yes'); ?> <div class="meta"><?php edit_post_link('Edit', '', ' | '); ?> <!--?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?--> </div> </div> <?php else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?> <div id="news"> <h1>News and Rants</h2> </div> <?php // Show all not programs... $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=-3&paged=$paged"); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h3 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3> <div class="storycontent"> <small><?php the_time('F jS, Y') ?></small> <?php if (in_category('4')) : ?> <p>Column added. Click <a href="<?php the_permalink() ?>" rel="bookmark">here</a> to read.</p> <?php else : ?> <?php the_content(__('(more...)')); ?> <?php endif; ?> <?php previous_post('« « %', '', 'yes'); ?> <?php next_post('% » » ', '', 'yes'); ?> <div class="meta"><?php edit_post_link(__('Edit This')); ?> <!--?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?--> </div> </div> </div> <br /><hr> <?php endwhile; else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?> <?php get_footer(); ?>
Any suggestions?
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Next/prev post links not working’ is closed to new replies.