I've got a main index page that uses a query post to show just category 4. This is the top of my loop currently:
<?php $my_query = "showposts=10&cat=4"; $my_query = new WP_Query($my_query); ?><!-- Calls the main blogroll category --> <?php if ($my_query->have_posts()) : while ($my_query->have_posts()) : $my_query->the_post(); ?><!-- Starts the loop --> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
How would I rewrite it so my next and previous button links work?
I've seen a lot of post on how query's don't act nice with the previous and next because of how it's pulling the content but I don't know enough about php to rewrite it to function correctly.
Thanks in advance.