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
|
<?php
|
||||||
// swap prev and next to get chronological order (oldest first)
|
// swap prev and next to get chronological order (oldest first)
|
||||||
$next_post = get_previous_post();
|
$next_post = get_previous_post(true);
|
||||||
$prev_post = get_next_post();
|
$prev_post = get_next_post(true);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="post-navigation">
|
<div class="post-navigation">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue