I am trying to have posts from just one category to show in the additional posts navigation in nav_below.
However, I am getting all posts to show in every category and they are displaying in order of the published date.
I am using a single post template for category 10, if that matters.
This is my code in functions.php:
// MGD nav_below
// Remove the default nav_below
function remove_thematic_actions() {
remove_action('thematic_navigation_below', 'thematic_nav_below', 2);
}
// Call 'nav_below' (above) during WP initialization
add_action('init','remove_thematic_actions');
function mgd_thematic_nav_below() {
if (is_category('10')) { ?>
<h3 class="additional-posts">Additional Posts</h3>
<div id="nav-below" class="navigation">
<div class="nav-previous"><span class="nav-direction">Previous</span><?php thematic_previous_post_link() ?></div>
<div class="nav-next"><span class="nav-direction">Next</span><?php thematic_next_post_link() ?></div>
</div>
<?php
} else { ?>
<h3 class="additional-posts">Navigate Additional Posts</h3>
<div id="nav-below" class="navigation">
<?php if(function_exists('wp_pagenavi')) { ?>
<?php wp_pagenavi(); ?>
<?php } else { ?>
<div class="nav-previous uppercase"><?php next_posts_link(__('<span class="meta-nav">«</span> Previous', 'thematic')) ?></div>
<div class="nav-next uppercase"><?php previous_posts_link(__('Next <span class="meta-nav">»</span>', 'thematic')) ?></div>
<?php } ?>
</div>
<?php
}
} // end nav_below
Anyone know what I am doing wrong?