Created
April 3, 2020 07:07
-
-
Save herbie4/031837ba2178a8b6859ca6ae1e4fd3c3 to your computer and use it in GitHub Desktop.
Enfold theme: keep next/prev links in same category
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// return only posts in same category for previous / next links | |
add_filter('avia_post_nav_settings', 'hhdev_avia_post_nav_settings_mod'); | |
function hhdev_avia_post_nav_settings_mod($settings) | |
{ | |
$settings['same_category'] = true; | |
return $settings; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment