ok here is the solution, I added three things
1) I grayed out next and previous when there is no next or previous post in that particular category
2) I added some fancy >> with the « and »
3) I checked which category I was actually in so I would only use this navigation for that particular category, so I could have one of those code blocks per type of page i have (i.e. one page displaying blog posts, one page displaying comic posts) or if i did not want this kind of navigation for blog posts, i would not use it
<p class="top_nav">
<?php $category = get_the_category();
$category_id=$category[0]->cat_ID;
if($category_id==4){
//4 in this case is my category ID which is comics, you could also use cat_name as indicated here http://codex.wordpress.org/Function_Reference/get_the_category
$args = array(
'cat' => 4, //this indicates what category you are in
'posts_per_page' => 1, //this displays 1 post per page (lol)
'order' => 'ASC' //asscending (this will show 1st->last)
);
$my_query = new WP_Query($args);
while ($my_query->have_posts()) { //this is the loop
$my_query->the_post(); ?>
<a href='<?php the_permalink(); ?> ' >«First Page</a> |
<?php }
wp_reset_query(); ?>
<span id="prev">
<?php previous_post_link('%link', '« Previous', true); ?>
<?php if(!get_adjacent_post(true, '', true)) { echo '<span>«Previous</span>'; } // if there are no older articles (greyed out) ?>
</span> |
<span id="next">
<?php next_post_link('%link', 'Next »', true); ?>
<?php if(!get_adjacent_post(true, '', false)) { echo '<span>Next »</span>'; } // if there are no newer articles (greyed out) ?>
</span> |
<?php $args['order'] = 'DESC';
$my_query = new WP_Query($args);
while ($my_query->have_posts()) {
$my_query->the_post(); ?>
<a href='<?php the_permalink(); ?> ' >Last Page»</a>
<?php }
wp_reset_query();
?>
</p>
<?php }
?>