Add only same category posts to next/prev
This commit is contained in:
parent
f719e18149
commit
1349c5edd7
1 changed files with 2 additions and 2 deletions
|
|
@ -129,8 +129,8 @@
|
|||
|
||||
<?php
|
||||
// swap prev and next to get chronological order (oldest first)
|
||||
$next_post = get_previous_post();
|
||||
$prev_post = get_next_post();
|
||||
$next_post = get_previous_post(true);
|
||||
$prev_post = get_next_post(true);
|
||||
?>
|
||||
|
||||
<div class="post-navigation">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue