Paginate to Blog Items from Specific Category

<div class="navigation">
	<div class="nav-previous alignleft"><?php previous_post_link('%link', 'Older Posts', TRUE, 'category'); ?></div>
	<div class="nav-next alignright"><?php next_post_link('%link', 'Newer Posts', TRUE, 'category'); ?></div>

Update the number to reflect the ‘category’ to reflect the taxonomy you would like to display. ‘TRUE’ is used to check for similar terms.

Must be used inside the loop on single.php template.

Sourced here.

Leave a Reply

Posted in php
katherine as a flat graphic icon

About Me

I’m an African / Ojibwe First Nations Web Developer living in Winnipeg, Manitoba.

Visit the Tips and Blog to see what I’m working on.