Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Load Next and Previous from same category (term) - Astra Theme
<?php // don't copy this line in your code.
function previous_posts_from_same_category( $args ) {
$args['in_same_term'] = true;
return $args;
}
add_filter( 'astra_single_post_navigation', 'previous_posts_from_same_category' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.