So I’ve been reading for a while on how to use prev and next links on my single pages. I have custom post type that is called portfolios and 2 categories. Now when i try to use:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php previous_post_link('%link', '<h6 class="hidden-sm-down">'.'%title'.'</h6><h6 class="hidden-md-up">'.'%title'.'</h6>', TRUE); ?>
<?php next_post_link('%link', '<h6 class="hidden-sm-down">'.'%title'.'</h6><h6 class="hidden-md-up">'.'%title'.'</h6>', TRUE); ?>
<?php endwhile; else : ?>
<?php endif; ?>
i get all posts, they are not filtered.