Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Make single post navigation to get links for posts in same category - Astra theme -
function your_prefix_single_post_navigation_same_category( $args ) {
$args[ 'in_same_term' ] = true;
return $args;
add_filter( 'astra_single_post_navigation', 'your_prefix_single_post_navigation_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.