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 | |
add_filter('init', 'modify_series_link_context'); | |
function modify_series_link_context() { | |
add_filter('post_link', 'multi_series_link_mod', 10, 3); | |
add_filter('get_the_series', 'multi_series_get_mod'); | |
} | |
function multi_series_link_mod($permalink, $post, $leavename) { | |
//is the displayed page a series archive page? If so, then let's make sure we append a request variable to the post links for this series. |
NewerOlder