[Theme: Hatch] exclude post category in loop-nav
-
i’m using hatch theme, using categories for portfolio posts and for news posts. i’ve installed the plugin Ultimate Category Excluder, so i can have different pages showing separate categories, which is working great.
The problem is when i get into the post pages, the loop-nav navigation is still pulling from all posts categories, so when you look a portfolio post, the next link page might be a news event with a really long post title. i want to have it pull from only the category the post exists in.
It looks like i can edit the loop-nav.php to restrict, but i don’t enough coding. Here is an excerpt from the php file:
<div class=”loop-nav”>
<?php previous_post_link( ‘%link’, ‘<span class=”previous”>’ . __( ‘← Return to entry’, ‘hatch’ ) . ‘</span>’ ); ?>
</div><!– .loop-nav –><?php elseif ( is_singular( ‘post’ ) ) : ?>
- The topic ‘[Theme: Hatch] exclude post category in loop-nav’ is closed to new replies.