<?php
// Remove adjacent post nav.
add_action( 'after_setup_theme', function(){
remove_post_type_support( 'post', 'genesis-adjacent-entry-nav' );
});
/**
* Add adjacent post navigation to posts
* in a specific category, by ID.
*/
add_action( 'wp_head', function() {
// Bail if not a single post.
if ( ! is_singular( 'post' ) ) {
return;
}
// Bail if not in category with ID of 123
if ( ! has_term( 123, 'category' ) ) {
return;
}
// Add adjacent post nav.
add_post_type_support( 'post', 'genesis-adjacent-entry-nav' );
});