I'm a beginner of wordpress ... I'm creating my first template and I would like to exclude the category "portfolio" from pagination. I tried in every way, but I managed to do just the opposite, browse through posts in the same category.
Do you have any suggestions? thank you so much
this is the code. I want to browse all posts, except posts with "portfolio" category.
<div class="row pagination pt-5">
<div class="col-5 no-gutter">
<p class="text-left "><?php previous_post_link(); ?></p>
</div>
<div class="col-5 no-gutter">
<p class="text-right"><?php next_post_link(); ?></p>
</div>
</div>