How to force full content on a specific category archive in Genesis

Scenario: Entry excerpts set to appear on content archives in Genesis theme settings.

Requirement: Show full content for all the posts on a particular category archive page.

Add the following in child theme’s functions.php:

add_filter( 'genesis_pre_get_option_content_archive', 'custom_force_full_content' );
/**
 * Force full content on a specific category archive. 
 */
function custom_force_full_content() {
    if ( is_category( 'category-1' ) ) {
        return 'full';
    }
}

Replace category-1 with the slug or name of your desired category.

This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.